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: set migrationDetail.rollbackEnabled respectively (#4778)
Liu Ji706154793019
diff --git a/frontend/src/components/Issue/rollback/common.ts b/frontend/src/components/Issue/rollback/common.tsindex 946535f9f7..d327b60cae 100644--- a/frontend/src/components/Issue/rollback/common.ts+++ b/frontend/src/components/Issue/rollback/common.ts@@ -146,10 +146,9 @@ export const useRollbackLogic = () => {// In tenant mode, all tasks share a common MigrationDetailconst issueCreate = issue.value as IssueCreate;const createContext = issueCreate.createContext as MigrationContext;- const migrationDetail = head(createContext.detailList);- if (migrationDetail) {- migrationDetail.rollbackEnabled = on;- }+ createContext.detailList.forEach((detail) => {+ detail.rollbackEnabled = on;+ });} else {// In standard mode, every task has a independent TaskCreate with its// own rollbackEnabled field.