v.2.21
Обновлен перенос клиента из группы в группу Обновлен метод восстановления смены Добавлен метод загрузки меню 1с из облака
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class AddColumnsToUnitsListAndUnits extends Migration {
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up() {
|
||||
|
||||
if (!Schema::hasColumn('units', 'is_history')) {
|
||||
Schema::table('units', function (Blueprint $table) {
|
||||
$table->tinyInteger('is_history')->nullable()->default(0);
|
||||
});
|
||||
}
|
||||
|
||||
if (!Schema::hasColumn('modifiers', 'is_history')) {
|
||||
Schema::table('modifiers', function (Blueprint $table) {
|
||||
$table->tinyInteger('is_history')->nullable()->default(0);
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down() {
|
||||
Schema::table('units', function (Blueprint $table) {
|
||||
$table->dropColumn('is_history');
|
||||
});
|
||||
Schema::table('modifiers', function (Blueprint $table) {
|
||||
$table->dropColumn('is_history');
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user