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: handle existing webhook_notification_settings table in migration

Andras Bacsaie930005a503e
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 a3edacbf96..c0689f81e6 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,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();