Skip to content

Commit

Permalink
EPMRPP-89659 || Update Notification tab (#294)
Browse files Browse the repository at this point in the history
  • Loading branch information
APiankouski authored Apr 1, 2024
1 parent 26e3d2f commit 99464ba
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions migrations/86_notication_update.down.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
DROP INDEX IF EXISTS unique_rule_name_per_project_rule_type;

CREATE UNIQUE INDEX unique_rule_name_per_project
ON sender_case (rule_name, project_id);

ALTER TABLE sender_case
DROP COLUMN IF EXISTS rule_details;

ALTER TABLE sender_case
DROP COLUMN IF EXISTS rule_type;
10 changes: 10 additions & 0 deletions migrations/86_notication_update.up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
ALTER TABLE sender_case
ADD rule_type VARCHAR(55) NOT NULL DEFAULT 'email';

ALTER TABLE sender_case
ADD rule_details JSONB NULL;

DROP INDEX unique_rule_name_per_project;

CREATE UNIQUE INDEX unique_rule_name_per_project_rule_type
ON sender_case (rule_name, project_id, rule_type);

0 comments on commit 99464ba

Please sign in to comment.