removed all references to credits. now credits are completely replaced by addons.

This commit is contained in:
Codex Agent
2025-12-01 15:50:17 +01:00
parent b8e515a03c
commit 28539754a7
76 changed files with 97 additions and 2533 deletions

View File

@@ -18,8 +18,6 @@ return new class extends Migration
$table->string('contact_name')->nullable();
$table->string('contact_email')->nullable();
$table->string('contact_phone')->nullable();
$table->integer('event_credits_balance')->default(1);
$table->timestamp('free_event_granted_at')->nullable();
$table->integer('max_photos_per_event')->default(500);
$table->integer('max_storage_mb')->default(1024);
$table->json('features')->nullable();
@@ -39,6 +37,11 @@ return new class extends Migration
$table->string('email')->nullable()->after('contact_phone');
});
}
if (Schema::hasColumn('tenants', 'event_credits_balance')) {
Schema::table('tenants', function (Blueprint $table) {
$table->dropColumn(['event_credits_balance', 'free_event_granted_at']);
});
}
if (!Schema::hasColumn('tenants', 'stripe_account_id')) {
Schema::table('tenants', function (Blueprint $table) {
$table->string('stripe_account_id')->nullable()->after('features');
@@ -106,4 +109,4 @@ return new class extends Migration
Schema::dropIfExists('tenants');
}
}
};
};