fix: idempotent migrations (ADD COLUMN IF NOT EXISTS), stale doc, safety note
This commit is contained in:
parent
7d36ec5e1f
commit
c47faf0af9
5 changed files with 80 additions and 26 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue