Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
Do not require baseline migration history if we are applying a branch type migration
天舟12f766718e21
diff --git a/db/mysql.go b/db/mysql.goindex 87ce3575d8..488f00a238 100644--- a/db/mysql.go+++ b/db/mysql.go@@ -473,9 +473,9 @@ func (driver *MySQLDriver) ExecuteMigration(ctx context.Context, m *MigrationInfreturn fmt.Errorf("database %q has already applied version %s which is higher than %s", m.Database, *version, m.Version)}- // If the migration engine is VCS and type is not baseline, then we can only proceed if there is existing baseline+ // If the migration engine is VCS and type is not baseline and is not branch, then we can only proceed if there is existing baseline// This check is also wrapped in transaction to avoid edge case where two baselinings are running concurrently.- if m.Engine == VCS && m.Type != Baseline {+ if m.Engine == VCS && m.Type != Baseline && m.Type != Branch {hasBaseline, err := findBaseline(ctx, tx, m.Namespace)if err != nil {return err