lib/db: Fix accounting bug when dropping indexes (#7774)

This commit is contained in:
Simon Frei
2021-06-17 10:15:11 +02:00
committed by GitHub
parent aa6c55dec1
commit 23a0e18292
4 changed files with 51 additions and 28 deletions
+2 -2
View File
@@ -20,7 +20,7 @@ import (
// do not put restrictions on downgrades (e.g. for repairs after a bugfix).
const (
dbVersion = 14
dbMigrationVersion = 18
dbMigrationVersion = 19
dbMinSyncthingVersion = "v1.9.0"
)
@@ -102,7 +102,7 @@ func (db *schemaUpdater) updateSchema() error {
{14, 14, "v1.9.0", db.updateSchemaTo14},
{14, 16, "v1.9.0", db.checkRepairMigration},
{14, 17, "v1.9.0", db.migration17},
{14, 18, "v1.9.0", db.dropIndexIDsMigration},
{14, 19, "v1.9.0", db.dropIndexIDsMigration},
}
for _, m := range migrations {