lib/db: Move database schema migration into its own file (#4985)

This commit is contained in:
Simon Frei
2018-06-08 12:46:00 +02:00
committed by Jakob Borg
parent 4781e1d86f
commit 30056cd1ae
4 changed files with 156 additions and 148 deletions

View File

@@ -751,9 +751,6 @@ func syncthingMain(runtimeOptions RuntimeOptions) {
miscDB.PutString("prevVersion", Version)
}
// Potential database transitions
ldb.UpdateSchema()
m := model.NewModel(cfg, myID, "syncthing", Version, ldb, protectedFiles)
if t := os.Getenv("STDEADLOCKTIMEOUT"); t != "" {