Skip to content

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

Update approval policy in the release seed data to reflect the new format where we store it in the policy table

天舟aa0271e7d42f
diff --git a/store/seed/release/10001__init_seed.sql b/store/seed/release/10001__init_seed.sql
index 938692e6b8..20cd860a9c 100644
--- a/store/seed/release/10001__init_seed.sql
+++ b/store/seed/release/10001__init_seed.sql
@@ -5,8 +5,7 @@ INSERT INTO
creator_id,
updater_id,
name,
- `order`,
- approval_policy
+ `order`
)
VALUES
(
@@ -14,8 +13,24 @@ VALUES
1,
1,
'Test',
- 0,
- "MANUAL_APPROVAL_NEVER"
+ 0
+ );
+
+INSERT INTO
+ policy (
+ creator_id,
+ updater_id,
+ environment_id,
+ type,
+ payload
+ )
+VALUES
+ (
+ 1,
+ 1,
+ 101,
+ 'bb.policy.pipeline-approval',
+ '{"value":"MANUAL_APPROVAL_NEVER"}'
);
INSERT INTO
@@ -24,8 +39,7 @@ INSERT INTO
creator_id,
updater_id,
name,
- `order`,
- approval_policy
+ `order`
)
VALUES
(
@@ -33,8 +47,24 @@ VALUES
1,
1,
'Prod',
+ 1
+ );
+
+INSERT INTO
+ policy (
+ creator_id,
+ updater_id,
+ environment_id,
+ type,
+ payload
+ )
+VALUES
+ (
+ 1,
1,
- "MANUAL_APPROVAL_ALWAYS"
+ 102,
+ 'bb.policy.pipeline-approval',
+ '{"value":"MANUAL_APPROVAL_ALWAYS"}'
);
-- Create 1 "test", 1 "prod" instance (including * database and admin data source)