fix: hotfix for #337 (resolve #33)

This commit is contained in:
Ferdinand Mütsch 2022-03-16 18:29:19 +01:00
parent 8c65da9031
commit d1bd7b96b8
2 changed files with 1 additions and 25 deletions

View File

@ -1,24 +0,0 @@
package migrations
import (
"github.com/emvi/logbuch"
"github.com/muety/wakapi/config"
"gorm.io/gorm"
)
func init() {
const name = "20220313-index_generation_hint"
f := migrationFunc{
name: name,
f: func(db *gorm.DB, cfg *config.Config) error {
if hasRun(name, db) {
return nil
}
logbuch.Info("please note: the following migrations might take a few minutes, as column types are changed and new indexes are created, have some patience")
setHasRun(name, db)
return nil
},
}
registerPreMigration(f)
}

View File

@ -1 +1 @@
2.2.5
2.2.6