fixed migration

This commit is contained in:
Codex Agent
2025-11-15 21:33:20 +01:00
parent 9e707ce618
commit e1e5549a91

View File

@@ -13,7 +13,7 @@ return new class extends Migration
{
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');
$table->enum('subscription_status', ['free', 'active', 'suspended', 'expired'])->default('free');
}
if (! Schema::hasColumn('tenants', 'subscription_expires_at')) {
$table->timestamp('subscription_expires_at')->nullable()->after('subscription_status');