Обновлен перенос клиента из группы в группу
Обновлен метод восстановления смены
Добавлен метод загрузки меню 1с из облака
This commit is contained in:
miroman-afk
2022-07-25 23:26:44 +03:00
parent 9c3b633098
commit 1af2b267f5
14 changed files with 1848 additions and 309 deletions

View File

@@ -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');
});
}
}