1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

fix: broken migration on postgres (resolve #127)

This commit is contained in:
Ferdinand Mütsch
2021-02-14 16:01:31 +01:00
parent e2f046a83d
commit 708863fd33
3 changed files with 25 additions and 4 deletions

View File

@ -14,7 +14,7 @@ func init() {
migrator := db.Migrator()
if !migrator.HasColumn(&models.User{}, "badges_enabled") {
// empty database, nothing to migrate
// empty database or already migrated, nothing to migrate
return nil
}