From 6e4b939d4772ae039bd201396e45683c384fa828 Mon Sep 17 00:00:00 2001 From: Nadir Hamid Date: Mon, 1 Jun 2026 18:27:51 +0000 Subject: [PATCH] rename suspensions table --- ..._add_grace_period_extension_to_workspace_suspensions.php | 6 +++--- .../2026_05_25_193839_add_invoice_id_to_suspensions.php | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/database/migrations/2026_05_22_000001_add_grace_period_extension_to_workspace_suspensions.php b/app/database/migrations/2026_05_22_000001_add_grace_period_extension_to_workspace_suspensions.php index cabcb612e..414f9feab 100644 --- a/app/database/migrations/2026_05_22_000001_add_grace_period_extension_to_workspace_suspensions.php +++ b/app/database/migrations/2026_05_22_000001_add_grace_period_extension_to_workspace_suspensions.php @@ -7,11 +7,11 @@ class AddGracePeriodExtensionToWorkspaceSuspensions extends Migration { public function up() { - if (Schema::hasTable('workspace_suspensions')) { + if (Schema::hasTable('workspaces_suspensions')) { return; } - Schema::create('workspace_suspensions', function (Blueprint $table) { + Schema::create('workspaces_suspensions', function (Blueprint $table) { $table->bigIncrements('id'); $table->integer('workspace_id')->unsigned(); $table->timestamp('suspended_at'); @@ -26,6 +26,6 @@ public function up() public function down() { - Schema::dropIfExists('workspace_suspensions'); + Schema::dropIfExists('workspaces_suspensions'); } } diff --git a/app/database/migrations/2026_05_25_193839_add_invoice_id_to_suspensions.php b/app/database/migrations/2026_05_25_193839_add_invoice_id_to_suspensions.php index a594be384..c284e15bc 100644 --- a/app/database/migrations/2026_05_25_193839_add_invoice_id_to_suspensions.php +++ b/app/database/migrations/2026_05_25_193839_add_invoice_id_to_suspensions.php @@ -12,7 +12,7 @@ class AddInvoiceIdToSuspensions extends Migration */ public function up() { - Schema::table('workspace_suspensions', function (Blueprint $table) { + Schema::table('workspaces_suspensions', function (Blueprint $table) { $table->unsignedInteger('invoice_id')->nullable(); $table->foreign('invoice_id')->references('id')->on('users_invoices')->onDelete('set null'); }); @@ -25,7 +25,7 @@ public function up() */ public function down() { - Schema::table('workspace_suspensions', function (Blueprint $table) { + Schema::table('workspaces_suspensions', function (Blueprint $table) { $table->dropForeign(['invoice_id']); $table->dropColumn('invoice_id'); });