Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix: correct the comment about why we skip getting the current db connection upon migration (#96)
tianzhou1bfbe383da10
diff --git a/plugin/db/util/driverutil.go b/plugin/db/util/driverutil.goindex 88ae6156e4..a397a80dae 100644--- a/plugin/db/util/driverutil.go+++ b/plugin/db/util/driverutil.go@@ -369,7 +369,7 @@ func ExecuteMigration(ctx context.Context, l *zap.Logger, dbType db.Type, driver// Branch migration type always has empty sql.// Baseline migration type could also has empty sql when the database is newly created.if statement != "" {- // Switch to the database if we're creating a new database+ // Switch to the target database only if we're NOT creating this target database.if !m.CreateDatabase {_, err := driver.GetDbConnection(ctx, m.Database)if err != nil {