Compare commits

..
Author SHA1 Message Date
Jakob Borg 44cbfcad56 fix(sqlite): update last migration to set schema version, counts (#10768)
The counts needs to be modified manually since we're not running
triggers during migrations. The schema version needed to be bumped.

Signed-off-by: Jakob Borg <jakob@kastelo.net>
2026-06-26 07:22:40 +02:00
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ import (
)
const (
currentSchemaVersion = 5
currentSchemaVersion = 6
applicationIDMain = 0x53546d6e // "STmn", Syncthing main database
applicationIDFolder = 0x53546664 // "STfd", Syncthing folder database
)
@@ -10,3 +10,7 @@ UPDATE files
SET size = 0
WHERE type != 0
;
UPDATE counts
SET size = 0
WHERE type != 0
;