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:
Kyle 2026-03-17 03:54:54 +08:00
parent 05f5b49e26
commit 61e48c3f14
2 changed files with 2 additions and 0 deletions

View File

@ -18,6 +18,7 @@ _OLD_TYPES = (
)
_NEW_TYPES = _OLD_TYPES + (
"project_invite", "project_invite_accepted", "project_invite_rejected",
"task_assigned",
)

View File

@ -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",
)