Add project notification types to CHECK constraint (migration 060)
The notifications table CHECK constraint did not include project_invite, project_invite_accepted, project_invite_rejected, or task_assigned. This caused 500 errors on invite_members and assign_users_to_task because create_notification violated ck_notifications_type. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
05f5b49e26
commit
61e48c3f14
@ -18,6 +18,7 @@ _OLD_TYPES = (
|
||||
)
|
||||
_NEW_TYPES = _OLD_TYPES + (
|
||||
"project_invite", "project_invite_accepted", "project_invite_rejected",
|
||||
"task_assigned",
|
||||
)
|
||||
|
||||
|
||||
|
||||
@ -10,6 +10,7 @@ _NOTIFICATION_TYPES = (
|
||||
"calendar_invite", "calendar_invite_accepted", "calendar_invite_rejected",
|
||||
"event_invite", "event_invite_response",
|
||||
"project_invite", "project_invite_accepted", "project_invite_rejected",
|
||||
"task_assigned",
|
||||
"info", "warning", "reminder", "system",
|
||||
)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user