mirror of
https://github.com/muety/wakapi.git
synced 2023-08-10 21:12:56 +03:00
16 lines
238 B
Go
16 lines
238 B
Go
package common
|
|
|
|
import (
|
|
"github.com/jinzhu/gorm"
|
|
"github.com/muety/wakapi/config"
|
|
"log"
|
|
)
|
|
|
|
func ApplyFixtures(db *gorm.DB) {
|
|
cfg := config.Get()
|
|
|
|
if err := cfg.GetFixturesFunc(cfg.Db.Dialect)(db); err != nil {
|
|
log.Fatal(err)
|
|
}
|
|
}
|