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>
This commit is contained in:
Jakob Borg
2026-06-26 07:22:40 +02:00
committed by GitHub
parent e4d08b336e
commit 44cbfcad56
2 changed files with 5 additions and 1 deletions

View File

@@ -27,7 +27,7 @@ import (
)
const (
currentSchemaVersion = 5
currentSchemaVersion = 6
applicationIDMain = 0x53546d6e // "STmn", Syncthing main database
applicationIDFolder = 0x53546664 // "STfd", Syncthing folder database
)

View File

@@ -10,3 +10,7 @@ UPDATE files
SET size = 0
WHERE type != 0
;
UPDATE counts
SET size = 0
WHERE type != 0
;