mirror of
https://github.com/muety/wakapi.git
synced 2023-08-10 21:12:56 +03:00
b6812ddc3a
fix: cascade for alias user foreign key constraint
18 lines
285 B
Go
18 lines
285 B
Go
package migrations
|
|
|
|
import (
|
|
"github.com/muety/wakapi/config"
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
func init() {
|
|
f := migrationFunc{
|
|
name: "000-apply_fixtures",
|
|
f: func(db *gorm.DB, cfg *config.Config) error {
|
|
return cfg.GetFixturesFunc(cfg.Db.Dialect)(db)
|
|
},
|
|
}
|
|
|
|
registerPostMigration(f)
|
|
}
|