Skip to content

Commit e3dd614

Browse files
chore(payments): regenerate types after deploying payout/enforcement migrations to cloud
Applies three previously-local-only migrations to the cloud Supabase project (20260724120000_manual_payouts, 20260724130000_access_cutoff_enforcement, 20260724140000_transaction_split_snapshot) and repairs migration history to match the repo filenames. Regenerates lib/database.types.ts for the columns each adds (payouts.payout_method/note/recorded_by + nullable period_start/ period_end, transactions.school_percentage_snapshot). Deploying the latter two (beyond #500's manual_payouts scope) was necessary because getPayoutsOwed() already selects transactions.school_percentage_snapshot on every /platform/payouts load — that column didn't exist on cloud, so the page was erroring in production before this change. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CcZgbBpQtpKipPwQq38EjT
1 parent 3a36763 commit e3dd614

1 file changed

Lines changed: 18 additions & 6 deletions

File tree

lib/database.types.ts

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4397,10 +4397,13 @@ export type Database = {
43974397
currency: string | null
43984398
failed_at: string | null
43994399
failure_reason: string | null
4400+
note: string | null
44004401
paid_at: string | null
44014402
payout_id: number
4402-
period_end: string
4403-
period_start: string
4403+
payout_method: string
4404+
period_end: string | null
4405+
period_start: string | null
4406+
recorded_by: string | null
44044407
status: string
44054408
stripe_metadata: Json | null
44064409
stripe_payout_id: string | null
@@ -4412,10 +4415,13 @@ export type Database = {
44124415
currency?: string | null
44134416
failed_at?: string | null
44144417
failure_reason?: string | null
4418+
note?: string | null
44154419
paid_at?: string | null
44164420
payout_id?: number
4417-
period_end: string
4418-
period_start: string
4421+
payout_method?: string
4422+
period_end?: string | null
4423+
period_start?: string | null
4424+
recorded_by?: string | null
44194425
status?: string
44204426
stripe_metadata?: Json | null
44214427
stripe_payout_id?: string | null
@@ -4427,10 +4433,13 @@ export type Database = {
44274433
currency?: string | null
44284434
failed_at?: string | null
44294435
failure_reason?: string | null
4436+
note?: string | null
44304437
paid_at?: string | null
44314438
payout_id?: number
4432-
period_end?: string
4433-
period_start?: string
4439+
payout_method?: string
4440+
period_end?: string | null
4441+
period_start?: string | null
4442+
recorded_by?: string | null
44344443
status?: string
44354444
stripe_metadata?: Json | null
44364445
stripe_payout_id?: string | null
@@ -5911,6 +5920,7 @@ export type Database = {
59115920
provider_charge_id: string | null
59125921
provider_metadata: Json | null
59135922
provider_subscription_id: string | null
5923+
school_percentage_snapshot: number | null
59145924
settlement_base: number | null
59155925
settlement_currency: string | null
59165926
settlement_mint: string | null
@@ -5932,6 +5942,7 @@ export type Database = {
59325942
provider_charge_id?: string | null
59335943
provider_metadata?: Json | null
59345944
provider_subscription_id?: string | null
5945+
school_percentage_snapshot?: number | null
59355946
settlement_base?: number | null
59365947
settlement_currency?: string | null
59375948
settlement_mint?: string | null
@@ -5953,6 +5964,7 @@ export type Database = {
59535964
provider_charge_id?: string | null
59545965
provider_metadata?: Json | null
59555966
provider_subscription_id?: string | null
5967+
school_percentage_snapshot?: number | null
59565968
settlement_base?: number | null
59575969
settlement_currency?: string | null
59585970
settlement_mint?: string | null

0 commit comments

Comments
 (0)