-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
modules/notification_emails/db/version_8_13_0/202301051135_new_q_notification_type.sql
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
ALTER TABLE user_email_notification_settings DROP CONSTRAINT chk_notification_source_type; | ||
ALTER TABLE user_email_notification_settings | ||
ADD CONSTRAINT chk_notification_source_type CHECK (notification_source_type = 'T' OR notification_source_type = 'V' OR notification_source_type = 'C' OR notification_source_type = 'Q' OR notification_source_type = 'A' OR notification_source_type = 'S' OR notification_source_type = 'VT' OR notification_source_type = 'M' OR notification_source_type = 'PT'); | ||
ADD CONSTRAINT chk_notification_source_type CHECK (notification_source_type IN ('T', 'V', 'C', 'Q', 'A', 'S', 'VT', 'M', 'PT', 'GU')); | ||
|
||
COMMENT ON COLUMN user_email_notification_settings.notification_source_type IS 'The notification type the setting relates to, as described in the notification Source Type. Value can be T (= trigger), C (= comment), Q (= query), V (= verification), A (= automated record check), S (= species alert), VT (= verifier task), M (= milestone), PT (= pending record task). Needs updating when notification.source_type constraint is altered.'; |