From 330bc8bde271e605deb571185d79daf1d502248f Mon Sep 17 00:00:00 2001 From: Kayos Date: Wed, 13 May 2026 20:32:41 -0700 Subject: [PATCH] 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. --- migrations/0005_chapter_body_md_tts.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrations/0005_chapter_body_md_tts.sql b/migrations/0005_chapter_body_md_tts.sql index c0c608d..9165833 100644 --- a/migrations/0005_chapter_body_md_tts.sql +++ b/migrations/0005_chapter_body_md_tts.sql @@ -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;