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:
@@ -27,7 +27,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
currentSchemaVersion = 5
|
currentSchemaVersion = 6
|
||||||
applicationIDMain = 0x53546d6e // "STmn", Syncthing main database
|
applicationIDMain = 0x53546d6e // "STmn", Syncthing main database
|
||||||
applicationIDFolder = 0x53546664 // "STfd", Syncthing folder database
|
applicationIDFolder = 0x53546664 // "STfd", Syncthing folder database
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -10,3 +10,7 @@ UPDATE files
|
|||||||
SET size = 0
|
SET size = 0
|
||||||
WHERE type != 0
|
WHERE type != 0
|
||||||
;
|
;
|
||||||
|
UPDATE counts
|
||||||
|
SET size = 0
|
||||||
|
WHERE type != 0
|
||||||
|
;
|
||||||
|
|||||||
Reference in New Issue
Block a user