0000_easy_slipstream already created lists/list_shares/list_items and the calendars unique constraint, but 0001_lists_schema re-created those tables and 0001_calendars_user_url_unique was an orphan (not in _journal) — so a cold `drizzle-kit migrate` against an empty DB failed with ERROR 1050 'Table lists already exists'. Dev only survived because its DB was built incrementally; CI is the first cold migrate and exposed it. Regenerated a single 0000_baseline.sql from schema.ts. Verified on a fresh mariadb:11: migrate succeeds, schema is structurally identical to the running dev DB, `drizzle-kit generate` reports no drift, and all 238 API tests pass. Local dev DBs must be rebuilt (drop + db:migrate); no prod exists.
13 lines
197 B
JSON
13 lines
197 B
JSON
{
|
|
"version": "7",
|
|
"dialect": "mysql",
|
|
"entries": [
|
|
{
|
|
"idx": 0,
|
|
"version": "5",
|
|
"when": 1781202409890,
|
|
"tag": "0000_baseline",
|
|
"breakpoints": true
|
|
}
|
|
]
|
|
} |