fixed migration
This commit is contained in:
@@ -12,10 +12,10 @@ return new class extends Migration
|
|||||||
public function up(): void
|
public function up(): void
|
||||||
{
|
{
|
||||||
Schema::table('tenants', function (Blueprint $table) {
|
Schema::table('tenants', function (Blueprint $table) {
|
||||||
if (!Schema::hasColumn('tenants', 'subscription_status')) {
|
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')) {
|
if (! Schema::hasColumn('tenants', 'subscription_expires_at')) {
|
||||||
$table->timestamp('subscription_expires_at')->nullable()->after('subscription_status');
|
$table->timestamp('subscription_expires_at')->nullable()->after('subscription_status');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user