Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

feat: automatic rollout should be the default rollout policy (#6897)

Tianzhou (天舟)7eb9c4e5107a
diff --git a/backend/migrator/migration/prod/1.0/0001##initial_data.sql b/backend/migrator/migration/prod/1.0/0001##initial_data.sql
index 5cb3b37443..8809be68ef 100644
--- a/backend/migrator/migration/prod/1.0/0001##initial_data.sql
+++ b/backend/migrator/migration/prod/1.0/0001##initial_data.sql
@@ -70,29 +70,10 @@ VALUES
1,
102,
'bb.policy.pipeline-approval',
- '{"value":"MANUAL_APPROVAL_ALWAYS"}'
- );
-
-INSERT INTO
- policy (
- id,
- creator_id,
- updater_id,
- environment_id,
- type,
- payload
- )
-VALUES
- (
- 103,
- 1,
- 1,
- 102,
- 'bb.policy.backup-plan',
- '{"schedule":"WEEKLY"}'
+ '{"value":"MANUAL_APPROVAL_NEVER"}'
);
-ALTER SEQUENCE policy_id_seq RESTART WITH 104;
+ALTER SEQUENCE policy_id_seq RESTART WITH 103;
-- Create label keys for `bb.location` and `bb.tenant`.
INSERT INTO
diff --git a/backend/migrator/migration/prod/LATEST_DATA.sql b/backend/migrator/migration/prod/LATEST_DATA.sql
index 1ccb8373c3..7a11d4b044 100644
--- a/backend/migrator/migration/prod/LATEST_DATA.sql
+++ b/backend/migrator/migration/prod/LATEST_DATA.sql
@@ -82,30 +82,7 @@ VALUES
102,
TRUE,
'bb.policy.pipeline-approval',
- '{"value":"MANUAL_APPROVAL_ALWAYS"}'
- );
-
-INSERT INTO
- policy (
- id,
- creator_id,
- updater_id,
- resource_type,
- resource_id,
- inherit_from_parent,
- type,
- payload
- )
-VALUES
- (
- 103,
- 1,
- 1,
- 'ENVIRONMENT',
- 102,
- TRUE,
- 'bb.policy.backup-plan',
- '{"schedule":"WEEKLY"}'
+ '{"value":"MANUAL_APPROVAL_NEVER"}'
);
-ALTER SEQUENCE policy_id_seq RESTART WITH 104;
+ALTER SEQUENCE policy_id_seq RESTART WITH 103;
diff --git a/frontend/src/store/modules/v1/policy.ts b/frontend/src/store/modules/v1/policy.ts
index 9b6ecaf78c..2984a705a8 100644
--- a/frontend/src/store/modules/v1/policy.ts
+++ b/frontend/src/store/modules/v1/policy.ts
@@ -250,7 +250,7 @@ export const getDefaultBackupPlanPolicy = (
};
};
-export const defaultApprovalStrategy = ApprovalStrategy.MANUAL;
+export const defaultApprovalStrategy = ApprovalStrategy.AUTOMATIC;
export const getDefaultDeploymentApprovalPolicy = (
parentPath: string,