Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
If the migration is a baseline, we should NOT execute the migration script and should just record the baseline info in the history table
天舟3b754e2d1db5
diff --git a/db/mysql.go b/db/mysql.goindex 088e5f8d1d..964594fbc7 100644--- a/db/mysql.go+++ b/db/mysql.go@@ -259,9 +259,8 @@ func (driver *MySQLDriver) ExecuteMigration(ctx context.Context, m *MigrationInfreturn err}- // Phase 2 - Executing migration unless it's baselining and has empty statement- // Baseline can have empty statement- if !(m.Type == Baseline && statement == "") {+ // Phase 2 - Executing migration unless it's baselining+ if m.Type != Baseline {_, err = tx.ExecContext(ctx, statement)if err != nil {return formatError(err)