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: store sql review policy (#6083)
ecmadao81709fa30044
diff --git a/backend/api/v1/org_policy_service.go b/backend/api/v1/org_policy_service.goindex 3236d938d5..c884665753 100644--- a/backend/api/v1/org_policy_service.go+++ b/backend/api/v1/org_policy_service.go@@ -16,7 +16,6 @@ import (enterpriseAPI "github.com/bytebase/bytebase/backend/enterprise/api"api "github.com/bytebase/bytebase/backend/legacyapi""github.com/bytebase/bytebase/backend/plugin/advisor"- advisordb "github.com/bytebase/bytebase/backend/plugin/advisor/db""github.com/bytebase/bytebase/backend/plugin/db""github.com/bytebase/bytebase/backend/store"v1pb "github.com/bytebase/bytebase/proto/generated-go/v1"@@ -652,7 +651,7 @@ func convertToSQLReviewPolicyPayload(policy *v1pb.SQLReviewPolicy) (*advisor.SQLPayload: rule.Payload,Type: advisor.SQLReviewRuleType(rule.Type),Comment: rule.Comment,- Engine: advisordb.Type(convertEngine(rule.Engine)),+ // DONOT assign the engine, we will use FlattenSQLReviewRulesWithEngine to map available engine with the rule.})}