-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EPMRPP-89659 || Update Notification tab (#294)
- Loading branch information
1 parent
26e3d2f
commit 99464ba
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |