chore(db): migration for previous commits (#10319)

Recreate the blocks and block lists tables.

---------

Co-authored-by: bt90 <btom1990@googlemail.com>
This commit is contained in:
Jakob Borg
2025-08-31 09:27:33 +02:00
committed by GitHub
co-authored by bt90
parent 4459438245
commit 4ad3f07691
3 changed files with 84 additions and 1 deletions
+4
View File
@@ -191,6 +191,10 @@ func (a *App) startup() error {
if _, ok := cfgFolders[folder]; !ok {
slog.Info("Cleaning metadata for dropped folder", "folder", folder)
a.sdb.DropFolder(folder)
} else {
// Open the folder database, causing it to apply migrations
// early when appropriate.
_, _ = a.sdb.GetDeviceSequence(folder, protocol.LocalDeviceID)
}
}