Watch
0
0
Fork
You've already forked hyperhive
0

fix: idempotent migrations (ADD COLUMN IF NOT EXISTS), stale doc, safety note

This commit is contained in:
atlas 2026-07-10 16:25:02 +02:00 • committed by mara
commit c47faf0af9

View file

@ -195,7 +195,8 @@ impl ScheduledPrompts {
("scheduled_prompts", "paused_at_unix"),
&[
// v1: add paused_at_unix for per-schedule pause support.
"ALTER TABLE scheduled_prompts ADD COLUMN paused_at_unix INTEGER",
"ALTER TABLE scheduled_prompts \
ADD COLUMN IF NOT EXISTS paused_at_unix INTEGER",
],
)?;
// Migration: recreate the due-rows index to also exclude paused