feat: live module and jenkins pipeline to harbor deploy

This commit is contained in:
Yvan
2026-09-23 17:42:54 +08:00
parent e376ff02aa
commit 53e8599bdd
145 changed files with 8984 additions and 269 deletions
+10 -1
View File
@@ -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 = &copy
}
dsn, err := databaseDSN(bootstrapConfig, bootstrap)
if err != nil {
return nil, err
}