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: remove migrationId (#11325)
p0ny06918102b8d7
diff --git a/backend/legacyapi/task_run.go b/backend/legacyapi/task_run.goindex a1ca934ab3..c2df217d01 100644--- a/backend/legacyapi/task_run.go+++ b/backend/legacyapi/task_run.go@@ -25,7 +25,6 @@ const (// TaskRunResultPayload is the result payload for a task run.type TaskRunResultPayload struct {Detail string `json:"detail,omitempty"`- MigrationID string `json:"migrationId,omitempty"`ChangeHistory string `json:"changeHistory,omitempty"`Version string `json:"version,omitempty"`ExportArchiveUID int `json:"exportArchiveUid,omitempty"`diff --git a/backend/migrator/migration/prod/2.15/0009##task_run_result_migration_id.sql b/backend/migrator/migration/prod/2.15/0009##task_run_result_migration_id.sqlnew file mode 100644index 0000000000..4b1eb852bb--- /dev/null+++ b/backend/migrator/migration/prod/2.15/0009##task_run_result_migration_id.sql@@ -0,0 +1,3 @@+ALTER TABLE task_run DISABLE TRIGGER update_task_run_updated_ts;+UPDATE task_run SET result = result - 'migrationId' WHERE result ? 'migrationId';+ALTER TABLE task_run ENABLE TRIGGER update_task_run_updated_ts;diff --git a/backend/migrator/migrator_test.go b/backend/migrator/migrator_test.goindex 7213e27ac1..f6eb22984e 100644--- a/backend/migrator/migrator_test.go+++ b/backend/migrator/migrator_test.go@@ -230,5 +230,5 @@ func TestMigrationCompatibility(t *testing.T) {func TestGetCutoffVersion(t *testing.T) {releaseVersion, err := getProdCutoffVersion()require.NoError(t, err)- require.Equal(t, semver.MustParse("2.15.8"), releaseVersion)+ require.Equal(t, semver.MustParse("2.15.9"), releaseVersion)}diff --git a/backend/runner/taskrun/database_create_executor.go b/backend/runner/taskrun/database_create_executor.goindex b91438d64d..d9bfb0b8a9 100644--- a/backend/runner/taskrun/database_create_executor.go+++ b/backend/runner/taskrun/database_create_executor.go@@ -242,9 +242,8 @@ func (exec *DatabaseCreateExecutor) RunOnce(ctx context.Context, driverCtx conte)}return true, &api.TaskRunResultPayload{- Detail: fmt.Sprintf("Created database %q", payload.DatabaseName),- MigrationID: "",- Version: storedVersion,+ Detail: fmt.Sprintf("Created database %q", payload.DatabaseName),+ Version: storedVersion,}, nil}diff --git a/backend/runner/taskrun/executor.go b/backend/runner/taskrun/executor.goindex 9feca69f47..20990f15ad 100644--- a/backend/runner/taskrun/executor.go+++ b/backend/runner/taskrun/executor.go@@ -480,7 +480,6 @@ func postMigration(ctx context.Context, stores *store.Store, task *store.TaskMes}return true, &api.TaskRunResultPayload{Detail: detail,- MigrationID: migrationID,ChangeHistory: fmt.Sprintf("instances/%s/databases/%s/changeHistories/%s", instance.ResourceID, database.DatabaseName, migrationID),Version: storedVersion,}, nil