mirror of
https://github.com/tiennm99/coolify.git
synced 2026-04-25 16:19:43 +00:00
fix: remove unnecessary table existence checks in migration files
This commit is contained in:
@@ -11,7 +11,6 @@ return new class extends Migration
|
|||||||
*/
|
*/
|
||||||
public function up(): void
|
public function up(): void
|
||||||
{
|
{
|
||||||
if (!Schema::hasTable('cloud_init_scripts')) {
|
|
||||||
Schema::create('cloud_init_scripts', function (Blueprint $table) {
|
Schema::create('cloud_init_scripts', function (Blueprint $table) {
|
||||||
$table->id();
|
$table->id();
|
||||||
$table->foreignId('team_id')->constrained()->onDelete('cascade');
|
$table->foreignId('team_id')->constrained()->onDelete('cascade');
|
||||||
@@ -21,7 +20,6 @@ return new class extends Migration
|
|||||||
|
|
||||||
$table->index('team_id');
|
$table->index('team_id');
|
||||||
});
|
});
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ return new class extends Migration
|
|||||||
*/
|
*/
|
||||||
public function up(): void
|
public function up(): void
|
||||||
{
|
{
|
||||||
if (!Schema::hasTable('webhook_notification_settings')) {
|
|
||||||
Schema::create('webhook_notification_settings', function (Blueprint $table) {
|
Schema::create('webhook_notification_settings', function (Blueprint $table) {
|
||||||
$table->id();
|
$table->id();
|
||||||
$table->foreignId('team_id')->constrained()->cascadeOnDelete();
|
$table->foreignId('team_id')->constrained()->cascadeOnDelete();
|
||||||
@@ -35,7 +34,6 @@ return new class extends Migration
|
|||||||
|
|
||||||
$table->unique(['team_id']);
|
$table->unique(['team_id']);
|
||||||
});
|
});
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user