mirror of
https://github.com/syncthing/syncthing.git
synced 2026-09-13 06:32:12 -04:00
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:
1 parent
e4d08b336e
commit
79ea3de7b0
2 files changed
+5
-1
No files matched your search
@@ -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
|
||||
;
|
||||
Reference in new issue
Block a user