Skip to content

Commit edd184a

Browse files
committed
migration for mandatory tag
1 parent 2afdd40 commit edd184a

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
BEGIN;
2+
3+
-- Alter Table: global_tag; Drop columns deployment_policy and value_constraint_id if they exist
4+
ALTER TABLE global_tag
5+
DROP COLUMN IF EXISTS deployment_policy,
6+
DROP COLUMN IF EXISTS value_constraint_id;
7+
8+
COMMIT;
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
BEGIN;
2+
3+
-- Alter Table: global_tag; Add columns deployment_policy and value_constraint_id
4+
ALTER TABLE global_tag
5+
ADD COLUMN IF NOT EXISTS deployment_policy VARCHAR(50) DEFAULT 'allow' NOT NULL,
6+
ADD COLUMN IF NOT EXISTS value_constraint_id INT;
7+
8+
COMMIT;

0 commit comments

Comments
 (0)