Skip to content

Commit 8f2577e

Browse files
authored
Merge pull request #192 from SEMOSAN/fix/#191-semofeed-emoji-notification-type
[Fix] notifications_type_check 제약 SEMOFEED_EMOJI 누락 수정
2 parents d380be7 + f817802 commit 8f2577e

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
-- =====================================================================
2+
-- V28__add_semofeed_emoji_notification_type.sql
3+
-- 목적: notifications.type CHECK 제약에 SEMOFEED_EMOJI 타입을 포함시킨다.
4+
-- 배경: V22 에서 COMMUNITY_REPLY/COMMUNITY_POST_LIKE 추가 시 SEMOFEED_EMOJI 가 누락됨.
5+
-- 멱등: DROP IF EXISTS → ADD 패턴.
6+
-- =====================================================================
7+
8+
ALTER TABLE notifications DROP CONSTRAINT IF EXISTS notifications_type_check;
9+
10+
ALTER TABLE notifications ADD CONSTRAINT notifications_type_check
11+
CHECK (type IN (
12+
'COMMUNITY_COMMENT',
13+
'COMMUNITY_REPLY',
14+
'COMMUNITY_POST_LIKE',
15+
'SEMOFEED_EMOJI',
16+
'TRACKING_PHOTO_MILESTONE',
17+
'TRACKING_SUMMIT_REACHED'
18+
));

0 commit comments

Comments
 (0)