Добавлен order для отделений

This commit is contained in:
Brusnitsyn
2026-07-07 02:56:53 +00:00
parent eb6a60956f
commit a723800359
3 changed files with 39 additions and 4 deletions

View File

@@ -0,0 +1,28 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('departments', function (Blueprint $table) {
$table->integer('order')->default(0);
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('departments', function (Blueprint $table) {
$table->dropColumn('order');
});
}
};