Commit 3c0aa90
* 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
* chore(payments): regenerate database.types.ts fully against cloud
Fixes pre-existing type drift unrelated to any migration in this branch —
the checked-in types file was stale relative to migrations already deployed
to both local and cloud: adds lessons.transcript, subscriptions.superseded_by
(+ FK), the user_ui_state table, and the change_subscription_plan RPC return
shape; removes the handle_manual_subscription_expiry function type (dropped
by migration 20260719120000/20260719130000, confirmed no live callers — the
app-layer cron at app/api/cron/expire-platform-subscriptions/route.ts
replaced it).
Also picks up the current typegen format (adds __InternalSupabase version
marker, drops the empty graphql_public schema block) — nothing in the
codebase references graphql_public.
npm run typecheck, lint, and build all pass clean.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CcZgbBpQtpKipPwQq38EjT
---------
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
1 parent 3a36763 commit 3c0aa90
1 file changed
Lines changed: 88 additions & 35 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
34 | 14 | | |
35 | 15 | | |
36 | 16 | | |
| |||
3796 | 3776 | | |
3797 | 3777 | | |
3798 | 3778 | | |
| 3779 | + | |
3799 | 3780 | | |
3800 | 3781 | | |
3801 | 3782 | | |
| |||
3816 | 3797 | | |
3817 | 3798 | | |
3818 | 3799 | | |
| 3800 | + | |
3819 | 3801 | | |
3820 | 3802 | | |
3821 | 3803 | | |
| |||
3836 | 3818 | | |
3837 | 3819 | | |
3838 | 3820 | | |
| 3821 | + | |
3839 | 3822 | | |
3840 | 3823 | | |
3841 | 3824 | | |
| |||
4397 | 4380 | | |
4398 | 4381 | | |
4399 | 4382 | | |
| 4383 | + | |
4400 | 4384 | | |
4401 | 4385 | | |
4402 | | - | |
4403 | | - | |
| 4386 | + | |
| 4387 | + | |
| 4388 | + | |
| 4389 | + | |
4404 | 4390 | | |
4405 | 4391 | | |
4406 | 4392 | | |
| |||
4412 | 4398 | | |
4413 | 4399 | | |
4414 | 4400 | | |
| 4401 | + | |
4415 | 4402 | | |
4416 | 4403 | | |
4417 | | - | |
4418 | | - | |
| 4404 | + | |
| 4405 | + | |
| 4406 | + | |
| 4407 | + | |
4419 | 4408 | | |
4420 | 4409 | | |
4421 | 4410 | | |
| |||
4427 | 4416 | | |
4428 | 4417 | | |
4429 | 4418 | | |
| 4419 | + | |
4430 | 4420 | | |
4431 | 4421 | | |
4432 | | - | |
4433 | | - | |
| 4422 | + | |
| 4423 | + | |
| 4424 | + | |
| 4425 | + | |
4434 | 4426 | | |
4435 | 4427 | | |
4436 | 4428 | | |
| |||
5454 | 5446 | | |
5455 | 5447 | | |
5456 | 5448 | | |
| 5449 | + | |
5457 | 5450 | | |
5458 | 5451 | | |
5459 | 5452 | | |
| |||
5476 | 5469 | | |
5477 | 5470 | | |
5478 | 5471 | | |
| 5472 | + | |
5479 | 5473 | | |
5480 | 5474 | | |
5481 | 5475 | | |
| |||
5498 | 5492 | | |
5499 | 5493 | | |
5500 | 5494 | | |
| 5495 | + | |
5501 | 5496 | | |
5502 | 5497 | | |
5503 | 5498 | | |
| |||
5512 | 5507 | | |
5513 | 5508 | | |
5514 | 5509 | | |
| 5510 | + | |
| 5511 | + | |
| 5512 | + | |
| 5513 | + | |
| 5514 | + | |
| 5515 | + | |
| 5516 | + | |
5515 | 5517 | | |
5516 | 5518 | | |
5517 | 5519 | | |
| |||
5911 | 5913 | | |
5912 | 5914 | | |
5913 | 5915 | | |
| 5916 | + | |
5914 | 5917 | | |
5915 | 5918 | | |
5916 | 5919 | | |
| |||
5932 | 5935 | | |
5933 | 5936 | | |
5934 | 5937 | | |
| 5938 | + | |
5935 | 5939 | | |
5936 | 5940 | | |
5937 | 5941 | | |
| |||
5953 | 5957 | | |
5954 | 5958 | | |
5955 | 5959 | | |
| 5960 | + | |
5956 | 5961 | | |
5957 | 5962 | | |
5958 | 5963 | | |
| |||
6065 | 6070 | | |
6066 | 6071 | | |
6067 | 6072 | | |
| 6073 | + | |
| 6074 | + | |
| 6075 | + | |
| 6076 | + | |
| 6077 | + | |
| 6078 | + | |
| 6079 | + | |
| 6080 | + | |
| 6081 | + | |
| 6082 | + | |
| 6083 | + | |
| 6084 | + | |
| 6085 | + | |
| 6086 | + | |
| 6087 | + | |
| 6088 | + | |
| 6089 | + | |
| 6090 | + | |
| 6091 | + | |
| 6092 | + | |
| 6093 | + | |
6068 | 6094 | | |
6069 | 6095 | | |
6070 | 6096 | | |
| |||
6259 | 6285 | | |
6260 | 6286 | | |
6261 | 6287 | | |
| 6288 | + | |
| 6289 | + | |
| 6290 | + | |
| 6291 | + | |
| 6292 | + | |
| 6293 | + | |
| 6294 | + | |
| 6295 | + | |
| 6296 | + | |
| 6297 | + | |
| 6298 | + | |
| 6299 | + | |
| 6300 | + | |
| 6301 | + | |
| 6302 | + | |
| 6303 | + | |
| 6304 | + | |
| 6305 | + | |
| 6306 | + | |
| 6307 | + | |
| 6308 | + | |
| 6309 | + | |
| 6310 | + | |
| 6311 | + | |
| 6312 | + | |
| 6313 | + | |
| 6314 | + | |
| 6315 | + | |
| 6316 | + | |
| 6317 | + | |
| 6318 | + | |
| 6319 | + | |
6262 | 6320 | | |
6263 | 6321 | | |
6264 | 6322 | | |
| |||
6373 | 6431 | | |
6374 | 6432 | | |
6375 | 6433 | | |
6376 | | - | |
6377 | 6434 | | |
6378 | 6435 | | |
6379 | 6436 | | |
| |||
6676 | 6733 | | |
6677 | 6734 | | |
6678 | 6735 | | |
6679 | | - | |
6680 | | - | |
6681 | | - | |
6682 | 6736 | | |
6683 | 6737 | | |
6684 | 6738 | | |
| |||
6740 | 6794 | | |
6741 | 6795 | | |
6742 | 6796 | | |
6743 | | - | |
| |||
0 commit comments