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: return error if schema version is empty (#12285)
Tianzhou (天舟)a18320f20f19
diff --git a/backend/runner/taskrun/executor.go b/backend/runner/taskrun/executor.goindex 776ffb6c55..2236d0cd18 100644--- a/backend/runner/taskrun/executor.go+++ b/backend/runner/taskrun/executor.go@@ -60,6 +60,9 @@ func RunExecutorOnce(ctx context.Context, driverCtx context.Context, exec Execut}func getMigrationInfo(ctx context.Context, stores *store.Store, profile config.Profile, task *store.TaskMessage, migrationType db.MigrationType, statement string, schemaVersion model.Version) (*db.MigrationInfo, error) {+ if schemaVersion.Version == "" {+ return nil, errors.Errorf("empty schema version")+ }instance, err := stores.GetInstanceV2(ctx, &store.FindInstanceMessage{UID: &task.InstanceID})if err != nil {return nil, err