From e1e5549a91faa5d39743272a2029dd527642291f Mon Sep 17 00:00:00 2001 From: Codex Agent Date: Sat, 15 Nov 2025 21:33:20 +0100 Subject: [PATCH] fixed migration --- ...15_123812_add_subscription_fields_to_tenants_table.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/database/migrations/2025_09_15_123812_add_subscription_fields_to_tenants_table.php b/database/migrations/2025_09_15_123812_add_subscription_fields_to_tenants_table.php index 53e85f9..c0f1c54 100644 --- a/database/migrations/2025_09_15_123812_add_subscription_fields_to_tenants_table.php +++ b/database/migrations/2025_09_15_123812_add_subscription_fields_to_tenants_table.php @@ -12,10 +12,10 @@ return new class extends Migration public function up(): void { Schema::table('tenants', function (Blueprint $table) { - if (!Schema::hasColumn('tenants', 'subscription_status')) { - $table->enum('subscription_status', ['free', 'active', 'suspended', 'expired'])->default('free')->after('subscription_tier'); + if (! Schema::hasColumn('tenants', 'subscription_status')) { + $table->enum('subscription_status', ['free', 'active', 'suspended', 'expired'])->default('free'); } - if (!Schema::hasColumn('tenants', 'subscription_expires_at')) { + if (! Schema::hasColumn('tenants', 'subscription_expires_at')) { $table->timestamp('subscription_expires_at')->nullable()->after('subscription_status'); } }); @@ -30,4 +30,4 @@ return new class extends Migration $table->dropColumn(['subscription_status', 'subscription_expires_at']); }); } -}; \ No newline at end of file +};