feat(db): temporary default plan=legend while tier toggle is missing

UPDATE all existing profiles to legend + ALTER COLUMN default to legend
so internal testers can exercise premium paths until the settings toggle
is rebuilt. Revert via follow-up migration once the toggle is back.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
chahinebrini 2026-05-16 10:04:34 +02:00
parent 4124463097
commit 6e34631246
2 changed files with 8 additions and 1 deletions

View File

@ -0,0 +1,7 @@
-- Temporary: while the plan-tier toggle is missing from settings, all users
-- get 'legend' so testers can exercise premium paths. Revert via follow-up
-- migration once the toggle is back.
UPDATE rebreak.profiles SET plan = 'legend';
ALTER TABLE rebreak.profiles ALTER COLUMN plan SET DEFAULT 'legend';

View File

@ -14,7 +14,7 @@ model Profile {
username String?
nickname String?
avatar String?
plan String @default("free")
plan String @default("legend")
streak Int @default(0)
followersCount Int @default(0) @map("followers_count")
stripeCustomerId String? @map("stripe_customer_id")