Commit 53a31fd
fix(ci): validate live-column builders and inline aliases in the pending-drop audit
Hardens check-pending-drop-tables per review: the audit now derives each
guarded table's doomed columns from schema.ts (@deprecated tags and
column-level contract-pending markers), so a sanctioned
omit(getTableColumns(t), [...]) or destructure-omit must name every
doomed column away — an unrelated or incomplete key list is reported
with the columns it misses, and schema.ts itself is no longer skipped,
so the <table>Columns helpers fail the audit if a later deprecation is
not added to their omit lists. Inline alias(t, ...) expressions passed
directly to from()/getTableColumns()/insert/update/delete now resolve to
their canonical table instead of escaping the checks. The testing
mirror's *Columns aliases now omit the same doomed keys as the real
helpers (and gain the missing proPeriodCostSnapshotAt entry), so tests
cannot keep passing against doomed-column references the app no longer
serves.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 8b81d09 commit 53a31fd
2 files changed
Lines changed: 199 additions & 99 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| |||
74 | 76 | | |
75 | 77 | | |
76 | 78 | | |
| 79 | + | |
77 | 80 | | |
78 | 81 | | |
79 | 82 | | |
| |||
277 | 280 | | |
278 | 281 | | |
279 | 282 | | |
280 | | - | |
| 283 | + | |
281 | 284 | | |
282 | 285 | | |
283 | 286 | | |
| |||
504 | 507 | | |
505 | 508 | | |
506 | 509 | | |
507 | | - | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
508 | 531 | | |
509 | 532 | | |
510 | 533 | | |
| |||
591 | 614 | | |
592 | 615 | | |
593 | 616 | | |
594 | | - | |
| 617 | + | |
595 | 618 | | |
596 | 619 | | |
597 | 620 | | |
| |||
0 commit comments