Commit a6f795e
committed
Replace openapi output-schema migration script with a drizzle SQL migration
The envelope unwrap is mechanical jsonb surgery, so it belongs in the
regular migration chain (db:migrate:prod) rather than a hand-run script:
- 0002_unwrap_openapi_output_envelope.sql rewrites envelope-shaped
openapi tool output schemas to the payload schema (NULL when the
envelope carried an empty data schema), using structural jsonb
comparisons casted from the json column. Rows produced before the
envelope existed don't match the predicates; re-running is a no-op.1 parent aa7f7b4 commit a6f795e
5 files changed
Lines changed: 1250 additions & 108 deletions
File tree
- apps/cloud
- drizzle
- meta
- scripts
Lines changed: 23 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 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
0 commit comments