Skip to content

Commit

Permalink
Merge pull request #1 from Melsoft-Games/mysql8_support
Browse files Browse the repository at this point in the history
fix db name
  • Loading branch information
sivchin-ms authored Sep 22, 2021
2 parents 3b53e02 + 55199dc commit fdadc20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/goose/cmd_create_db.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func createDatabaseRun(cmd *Command, args ...string) {
if isSoft {
ifNotExists = "IF NOT EXISTS"
}
if _, err := db.Exec(fmt.Sprintf("CREATE DATABASE %s %s CHARACTER SET utf8 COLLATE utf8_general_ci", ifNotExists, conf.DBName)); err != nil {
if _, err := db.Exec(fmt.Sprintf("CREATE DATABASE %s `%s` CHARACTER SET utf8 COLLATE utf8_general_ci", ifNotExists, conf.DBName)); err != nil {
log.Fatal(err)
}
default:
Expand Down

0 comments on commit fdadc20

Please sign in to comment.