diff --git a/database/migrations/2025_12_02_150000_create_global_menus_table.php b/database/migrations/2025_12_02_150000_create_global_menus_table.php index e2c6952..b96621f 100644 --- a/database/migrations/2025_12_02_150000_create_global_menus_table.php +++ b/database/migrations/2025_12_02_150000_create_global_menus_table.php @@ -20,7 +20,11 @@ { public function up(): void { - // 1. global_menus 테이블 생성 + // 1. global_menus 테이블 생성 (이미 존재하면 스킵) + if (Schema::hasTable('global_menus')) { + return; // 이미 테이블이 존재하면 마이그레이션 스킵 + } + Schema::create('global_menus', function (Blueprint $table) { $table->id()->comment('PK: 글로벌 메뉴 ID'); $table->unsignedBigInteger('parent_id')->nullable()->comment('상위 메뉴 ID');