Commit 6103289
ci: auto-apply D1 schema migrations before Worker deploy
Runs schema.sql on remote D1 before deploying Worker code. Uses
CREATE TABLE/INDEX IF NOT EXISTS so it's safe to run on every deploy.
Ensures new tables (ingest_log) and indexes are available when the
new Worker code goes live.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 48d49cf commit 6103289
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
38 | 45 | | |
39 | 46 | | |
40 | 47 | | |
| |||
0 commit comments