unstable: initial tags
This commit is contained in:
parent
2e71b60248
commit
b3b62af3a4
28 changed files with 503 additions and 91 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue