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: fix the change resources for change list (#12422)
rebelicea59492b4aa07
diff --git a/backend/runner/taskrun/executor.go b/backend/runner/taskrun/executor.goindex 2236d0cd18..71ef37b9b7 100644--- a/backend/runner/taskrun/executor.go+++ b/backend/runner/taskrun/executor.go@@ -59,7 +59,7 @@ func RunExecutorOnce(ctx context.Context, driverCtx context.Context, exec Executreturn exec.RunOnce(ctx, driverCtx, task, taskRunUID)}-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) {+func getMigrationInfo(ctx context.Context, stores *store.Store, profile config.Profile, task *store.TaskMessage, migrationType db.MigrationType, statement string, schemaVersion model.Version, sheetID *int) (*db.MigrationInfo, error) {if schemaVersion.Version == "" {return nil, errors.Errorf("empty schema version")}@@ -122,6 +122,9 @@ func getMigrationInfo(ctx context.Context, stores *store.Store, profile config.Pif run.Config.DatabaseName != database.DatabaseName {continue}+ if sheetID != nil && run.Config.SheetUid != int32(*sheetID) {+ continue+ }if run.Result == nil {continue}@@ -430,7 +433,7 @@ func postMigration(ctx context.Context, stores *store.Store, task *store.TaskMes}func runMigration(ctx context.Context, driverCtx context.Context, store *store.Store, dbFactory *dbfactory.DBFactory, stateCfg *state.State, profile config.Profile, task *store.TaskMessage, taskRunUID int, migrationType db.MigrationType, statement string, schemaVersion model.Version, sheetID *int) (terminated bool, result *storepb.TaskRunResult, err error) {- mi, err := getMigrationInfo(ctx, store, profile, task, migrationType, statement, schemaVersion)+ mi, err := getMigrationInfo(ctx, store, profile, task, migrationType, statement, schemaVersion, sheetID)if err != nil {return true, nil, err}diff --git a/backend/runner/taskrun/schema_update_ghost_cutover_executor.go b/backend/runner/taskrun/schema_update_ghost_cutover_executor.goindex bd6a207588..9c5da116b4 100644--- a/backend/runner/taskrun/schema_update_ghost_cutover_executor.go+++ b/backend/runner/taskrun/schema_update_ghost_cutover_executor.go@@ -140,7 +140,7 @@ func cutover(ctx context.Context, taskContext context.Context, stores *store.Storeturn true, nil, err}- mi, err := getMigrationInfo(ctx, stores, profile, task, db.Migrate, statement, schemaVersion)+ mi, err := getMigrationInfo(ctx, stores, profile, task, db.Migrate, statement, schemaVersion, &sheetID)if err != nil {return true, nil, err}