unstable: initial tags

This commit is contained in:
ston1th 2019-08-20 23:57:43 +02:00
commit b3b62af3a4
28 changed files with 503 additions and 91 deletions

View file

@ -37,7 +37,14 @@ func New(cfg core.Config) (db *DB, err error) {
if err != nil && err != store.ErrKeyNotFound {
return
}
err = db.RunMigrations()
err = db.store.Get(versionKey, nil)
if err == store.ErrKeyNotFound {
err = db.addDefaultTags()
if err != nil {
return
}
}
err = db.runMigrations()
return
}