migration 0005: idempotent ADD COLUMN IF NOT EXISTS

Caught when redeploying after the 0006 patch: the live DB had
migration 5 stamped with a stale checksum + the column already
present, so neither re-apply nor checksum-only-fix worked cleanly.
Making 0005 idempotent fixes both paths.
This commit is contained in:
Kayos 2026-05-13 20:32:41 -07:00
parent 2ed3d3373a
commit 330bc8bde2

View file

@ -9,4 +9,4 @@
-- text export. The TTS version is production output, regeneratable
-- whenever the author's beat-placement taste shifts.
ALTER TABLE chapters
ADD COLUMN body_md_tts text;
ADD COLUMN IF NOT EXISTS body_md_tts text;