fix: add statement-breakpoint to migration 0025 and regenerate upgrade SQL

Better-SQLite3 requires --> statement-breakpoint between each statement
in a migration file; without it all statements are passed as a single
string to Database.prepare() which throws RangeError on multi-statement input.
This commit is contained in:
Xiang Li
2026-04-23 23:21:58 +08:00
parent cb5078468c
commit 078ac4aa9d
3 changed files with 4 additions and 2 deletions
+2
View File
@@ -1,3 +1,5 @@
ALTER TABLE `sites` ADD `post_refresh_probe_enabled` integer DEFAULT false; ALTER TABLE `sites` ADD `post_refresh_probe_enabled` integer DEFAULT false;
--> statement-breakpoint
ALTER TABLE `sites` ADD `post_refresh_probe_model` text DEFAULT ''; ALTER TABLE `sites` ADD `post_refresh_probe_model` text DEFAULT '';
--> statement-breakpoint
ALTER TABLE `sites` ADD `post_refresh_probe_scope` text DEFAULT 'single'; ALTER TABLE `sites` ADD `post_refresh_probe_scope` text DEFAULT 'single';
+1 -1
View File
@@ -1 +1 @@
ALTER TABLE `sites` ADD COLUMN `post_refresh_probe_latency_threshold_ms` INT DEFAULT 0; -- no schema changes detected for mysql
+1 -1
View File
@@ -1 +1 @@
ALTER TABLE "sites" ADD COLUMN "post_refresh_probe_latency_threshold_ms" INTEGER DEFAULT 0; -- no schema changes detected for postgres