Warn user if DB does not have version
This commit is contained in:
parent
238f4cf682
commit
3e0c110893
|
@ -107,6 +107,7 @@ func Init(db *sqlx.DB, dsn string) error {
|
|||
|
||||
ver, ok := GetVersion(db)
|
||||
if !ok {
|
||||
log.Warn("Database version does not exist. Run lure fix if something isn't working.").Send()
|
||||
return addVersion(db, CurrentVersion)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue