mirror of
https://github.com/therootcompany/golib.git
synced 2026-02-10 05:48:06 +00:00
chore(cmd/sql-migrate): add explicit default for sqlCommand switch
This commit is contained in:
parent
dd4148b88e
commit
e7282c58f3
@ -203,6 +203,8 @@ func main() {
|
|||||||
cfg.sqlCommand = sqlCommandMariaDB
|
cfg.sqlCommand = sqlCommandMariaDB
|
||||||
case "mysql", "my":
|
case "mysql", "my":
|
||||||
cfg.sqlCommand = sqlCommandMySQL
|
cfg.sqlCommand = sqlCommandMySQL
|
||||||
|
default:
|
||||||
|
// leave as provided by the user
|
||||||
}
|
}
|
||||||
|
|
||||||
if !strings.HasSuffix(cfg.migrationsDir, "/") {
|
if !strings.HasSuffix(cfg.migrationsDir, "/") {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user