mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 08:58:41 +00:00
Perform migration at startup when using inmem datastore (#270)
This commit is contained in:
parent
0a1ca0c4fb
commit
59c194a7f4
1 changed files with 4 additions and 0 deletions
|
|
@ -68,6 +68,10 @@ the way that the kolide server works.
|
|||
initFatal(err, "initializing datastore")
|
||||
}
|
||||
|
||||
err = ds.Migrate()
|
||||
if err != nil {
|
||||
initFatal(err, "initializing datastore")
|
||||
}
|
||||
} else {
|
||||
connString := datastore.GetMysqlConnectionString(config.Mysql)
|
||||
ds, err = datastore.New("gorm-mysql", connString)
|
||||
|
|
|
|||
Loading…
Reference in a new issue