Commit 146f0ba
committed
feat(db): add is_legacy column to referral table with migration
- Add is_legacy boolean column to referral table (default false)
- Migration adds referral_legacy enum value to grant_type
- Backfills existing referrals as is_legacy=true (grandfathered users)
- Migrates existing credit_ledger referral grants with expiry to referral_legacy type1 parent ecda87e commit 146f0ba
File tree
4 files changed
+2826
-1
lines changed- packages/internal/src/db
- migrations
- meta
4 files changed
+2826
-1
lines changedLines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
0 commit comments