Perform migration at startup when using inmem datastore (#270)

This commit is contained in:
Zachary Wasserman 2016-10-03 20:35:56 -07:00 committed by GitHub
parent 0a1ca0c4fb
commit 59c194a7f4

View file

@ -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)