package main import ( "git.aiterp.net/lucifer/new-server/app/config" "github.com/pressly/goose" "log" ) func main() { db := config.DBX().DB log.Println("Host: " + config.MySqlHost()) log.Println("Schema: " + config.MySqlUsername()) err := goose.SetDialect("mysql") if err != nil { log.Fatal(err) } err = goose.Run("up", db, "./scripts") if err != nil { log.Fatal(err) } }