This commit is contained in:
2026-06-27 10:13:59 +03:30
parent 4a0a19fdff
commit 7b10a5f6f3
3 changed files with 35 additions and 3 deletions
@@ -0,0 +1,22 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::table('categories', function (Blueprint $table) {
$table->integer('order')->default(0)->after('type')->index();
});
}
public function down(): void
{
Schema::table('categories', function (Blueprint $table) {
$table->dropColumn('order');
});
}
};