Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: allow SDL migration trigger empty statement (#4788)
rebelicef065b3da4cf7
diff --git a/backend/runner/taskrun/executor.go b/backend/runner/taskrun/executor.goindex 71607acfc2..f62657842d 100644--- a/backend/runner/taskrun/executor.go+++ b/backend/runner/taskrun/executor.go@@ -126,8 +126,8 @@ func preMigration(ctx context.Context, stores *store.Store, profile config.Profimi.Namespace = database.DatabaseNamestatement = strings.TrimSpace(statement)- // Only baseline can have empty sql statement, which indicates empty database.- if mi.Type != db.Baseline && statement == "" {+ // Only baseline and SDL migration can have empty sql statement, which indicates empty database.+ if mi.Type != db.Baseline && mi.Type != db.MigrateSDL && statement == "" {return nil, errors.Errorf("empty statement")}// We will force migration for baseline, migrate and data type of migrations.