feat: live module and jenkins pipeline to harbor deploy
This commit is contained in:
@@ -205,7 +205,16 @@ func openDatabase(c *config.Database, create bool, template string, appLogger *s
|
||||
case "mssql":
|
||||
bootstrap = "master"
|
||||
}
|
||||
dsn, err := databaseDSN(c, bootstrap)
|
||||
bootstrapConfig := c
|
||||
if driver == "mysql" {
|
||||
// MySQL creates the target schema after connecting to the server. Do
|
||||
// not include the not-yet-existing schema in the bootstrap DSN.
|
||||
copy := *c
|
||||
copy.Name = ""
|
||||
copy.Source = ""
|
||||
bootstrapConfig = ©
|
||||
}
|
||||
dsn, err := databaseDSN(bootstrapConfig, bootstrap)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user