mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-06-12 18:08:54 +00:00
b8819bdbff
`CREATE TRIGGER IF NOT EXISTS` does not replace an existing trigger body. On databases created with the old (buggy) DELETE-FROM-FTS syntax, the bad trigger body persisted after code updates. Now we explicitly DROP each trigger before CREATE, so any existing DB gets the corrected body on next startup — no manual DB deletion required.