Skip to content

Commit 26b26c8

Browse files
committed
update col name to policy_revision
1 parent 5dff7b9 commit 26b26c8

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

scripts/sql/32703400_alter_cd_workflow_runner.down.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ WHERE node_type = 'CD'
77
AND event_type_id = 1
88
AND channel_type='ses';
99

10-
ALTER TABLE global_policy DROP COLUMN IF EXISTS resource_version;
10+
ALTER TABLE global_policy DROP COLUMN IF EXISTS policy_revision;

scripts/sql/32703400_alter_cd_workflow_runner.up.sql

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ WHERE node_type = 'CD'
88
AND channel_type='ses';
99

1010
--adding resource_version to global_policy table for maintaining optimistic concurrency control
11-
ALTER TABLE global_policy ADD COLUMN IF NOT EXISTS resource_version VARCHAR(20);
12-
11+
ALTER TABLE global_policy ADD COLUMN IF NOT EXISTS policy_revision VARCHAR(20);
12+
-- Create a sequence for global policy revisions
13+
CREATE SEQUENCE global_policy_policy_revision_seq;

0 commit comments

Comments
 (0)