Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix: remove unnecessary table existence checks in migration files

Andras Bacsai028e7cb35ee9
diff --git a/database/migrations/2025_10_10_120000_create_cloud_init_scripts_table.php b/database/migrations/2025_10_10_120000_create_cloud_init_scripts_table.php
index 932c551d7a..e0b2934f3a 100644
--- a/database/migrations/2025_10_10_120000_create_cloud_init_scripts_table.php
+++ b/database/migrations/2025_10_10_120000_create_cloud_init_scripts_table.php
@@ -11,7 +11,6 @@ return new class extends Migration
*/
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 @@ return new class extends Migration
$table->index('team_id');
});
- }
}
/**
diff --git a/database/migrations/2025_10_10_120002_create_webhook_notification_settings_table.php b/database/migrations/2025_10_10_120002_create_webhook_notification_settings_table.php
index 1c2aeff88c..5ff8aa46d9 100644
--- a/database/migrations/2025_10_10_120002_create_webhook_notification_settings_table.php
+++ b/database/migrations/2025_10_10_120002_create_webhook_notification_settings_table.php
@@ -11,7 +11,6 @@ return new class extends Migration
*/
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 @@ return new class extends Migration
$table->unique(['team_id']);
});
- }
}
/**