fixed migration
This commit is contained in:
@@ -13,7 +13,7 @@ return new class extends Migration
|
|||||||
{
|
{
|
||||||
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