fix: remove unnecessary table existence checks in migration files
This commit is contained in:
parent
60ef63de54
commit
028e7cb35e
2 changed files with 0 additions and 4 deletions
|
|
@ -11,7 +11,6 @@
|
|||
*/
|
||||
public function up(): void
|
||||
{
|
||||
if (!Schema::hasTable('cloud_init_scripts')) {
|
||||
Schema::create('cloud_init_scripts', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('team_id')->constrained()->onDelete('cascade');
|
||||
|
|
@ -21,7 +20,6 @@ public function up(): void
|
|||
|
||||
$table->index('team_id');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
*/
|
||||
public function up(): void
|
||||
{
|
||||
if (!Schema::hasTable('webhook_notification_settings')) {
|
||||
Schema::create('webhook_notification_settings', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('team_id')->constrained()->cascadeOnDelete();
|
||||
|
|
@ -35,7 +34,6 @@ public function up(): void
|
|||
|
||||
$table->unique(['team_id']);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue