mirror of
https://github.com/tiennm99/coolify.git
synced 2026-08-20 08:23:25 +00:00
fix: handle migration rename errors for v444→v445 upgrades (#7320)
This commit is contained in:
@@ -11,6 +11,12 @@ return new class extends Migration
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
// Check if table already exists (handles upgrades from v444 where this migration
|
||||
// was named 2025_10_10_120000_create_cloud_init_scripts_table.php)
|
||||
if (Schema::hasTable('cloud_init_scripts')) {
|
||||
return;
|
||||
}
|
||||
|
||||
Schema::create('cloud_init_scripts', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('team_id')->constrained()->onDelete('cascade');
|
||||
|
||||
@@ -11,6 +11,12 @@ return new class extends Migration
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
// Check if table already exists (handles upgrades from v444 where this migration
|
||||
// was named 2025_10_10_120000_create_webhook_notification_settings_table.php)
|
||||
if (Schema::hasTable('webhook_notification_settings')) {
|
||||
return;
|
||||
}
|
||||
|
||||
Schema::create('webhook_notification_settings', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('team_id')->constrained()->cascadeOnDelete();
|
||||
|
||||
Reference in New Issue
Block a user