chore: 마이그레이션 파일 안정화 (anonymousClass 추가)

This commit is contained in:
2025-12-09 09:38:56 +09:00
parent 5f200054ea
commit 46d4c30880
9 changed files with 10 additions and 11 deletions

View File

@@ -98,4 +98,4 @@ public function down(): void
Schema::dropIfExists('admin_pm_tasks');
Schema::dropIfExists('admin_pm_projects');
}
};
};

View File

@@ -35,4 +35,4 @@ public function down(): void
$table->dropColumn('is_urgent');
});
}
};
};

View File

@@ -16,7 +16,7 @@ public function up(): void
{
// MySQL에서 enum을 varchar로 변경
// 기존 데이터는 그대로 유지됨
DB::statement("ALTER TABLE archived_records MODIFY COLUMN record_type VARCHAR(50) NOT NULL");
DB::statement('ALTER TABLE archived_records MODIFY COLUMN record_type VARCHAR(50) NOT NULL');
}
/**
@@ -27,4 +27,4 @@ public function down(): void
// varchar를 다시 enum으로 변경 (기존 값만)
DB::statement("ALTER TABLE archived_records MODIFY COLUMN record_type ENUM('tenant', 'user') NOT NULL");
}
};
};

View File

@@ -40,4 +40,4 @@ public function down(): void
$table->dropColumn('tenant_id');
});
}
};
};

View File

@@ -57,4 +57,4 @@ public function down(): void
Schema::dropIfExists('admin_pm_daily_log_entries');
Schema::dropIfExists('admin_pm_daily_logs');
}
};
};

View File

@@ -47,4 +47,4 @@ public function down(): void
$table->dropColumn(['global_menu_id', 'is_customized']);
});
}
};
};

View File

@@ -25,4 +25,4 @@ public function down(): void
$table->unsignedBigInteger('category_id')->default(null)->change();
});
}
};
};

View File

@@ -48,4 +48,4 @@ public function down(): void
->onUpdate('cascade');
});
}
};
};

View File

@@ -2,7 +2,6 @@
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;
/**
* clients 테이블 is_active 컬럼을 CHAR(1) 'Y'/'N'에서 TINYINT(1) 0/1로 변환
@@ -39,4 +38,4 @@ public function down(): void
DB::statement("UPDATE clients SET is_active = 'Y' WHERE is_active = '1' OR is_active = 1");
DB::statement("UPDATE clients SET is_active = 'N' WHERE is_active = '0' OR is_active = 0");
}
};
};