Warn user if DB does not have version

This commit is contained in:
Elara 2023-01-11 18:31:08 -08:00
parent 238f4cf682
commit 3e0c110893
1 changed files with 1 additions and 0 deletions

View File

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