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:
parent
4124463097
commit
6e34631246
@ -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';
|
||||||
@ -14,7 +14,7 @@ model Profile {
|
|||||||
username String?
|
username String?
|
||||||
nickname String?
|
nickname String?
|
||||||
avatar String?
|
avatar String?
|
||||||
plan String @default("free")
|
plan String @default("legend")
|
||||||
streak Int @default(0)
|
streak Int @default(0)
|
||||||
followersCount Int @default(0) @map("followers_count")
|
followersCount Int @default(0) @map("followers_count")
|
||||||
stripeCustomerId String? @map("stripe_customer_id")
|
stripeCustomerId String? @map("stripe_customer_id")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user