diff --git a/src/main/java/io/oeid/mogakgo/domain/notification/domain/Notification.java b/src/main/java/io/oeid/mogakgo/domain/notification/domain/Notification.java index 9790367d..f9e2c842 100644 --- a/src/main/java/io/oeid/mogakgo/domain/notification/domain/Notification.java +++ b/src/main/java/io/oeid/mogakgo/domain/notification/domain/Notification.java @@ -117,7 +117,7 @@ public static Notification newRequestArrivalNotification(User user) { } public static Notification newMatchingSuccessNotification(User user, Project project) { - return new Notification(NotificationTag.MATCHING_SUCCEEDED, + return new Notification(NotificationTag.MATCHING_SUCCESS, NotificationMessage.MATCHING_SUCCESS_MESSAGE.getMessage(), user, project); } @@ -127,7 +127,7 @@ public static Notification newMatchingFailedNotification(User user, Project proj } private NotificationTag validateNotificationTag(NotificationTag notificationTag) { - if (!notificationTag.equals(NotificationTag.MATCHING_SUCCEEDED) && !notificationTag.equals( + if (!notificationTag.equals(NotificationTag.MATCHING_SUCCESS) && !notificationTag.equals( NotificationTag.MATCHING_FAILED)) { throw new NotificationException(ErrorCode400.NOTIFICATION_TAG_SHOULD_LIKE_MATCHING); } diff --git a/src/main/java/io/oeid/mogakgo/domain/notification/domain/enums/NotificationTag.java b/src/main/java/io/oeid/mogakgo/domain/notification/domain/enums/NotificationTag.java index cd9f2b0c..ade5449e 100644 --- a/src/main/java/io/oeid/mogakgo/domain/notification/domain/enums/NotificationTag.java +++ b/src/main/java/io/oeid/mogakgo/domain/notification/domain/enums/NotificationTag.java @@ -4,7 +4,7 @@ public enum NotificationTag { ACHIEVEMENT, REQUEST_ARRIVAL, MATCHING_FINISHED, - MATCHING_SUCCEEDED, + MATCHING_SUCCESS, MATCHING_FAILED, REVIEW_REQUEST, ; diff --git a/src/main/resources/db/migration/V5_notification_tag.sql b/src/main/resources/db/migration/V5_notification_tag.sql new file mode 100644 index 00000000..7dd1b3a5 --- /dev/null +++ b/src/main/resources/db/migration/V5_notification_tag.sql @@ -0,0 +1,2 @@ +alter table user_tb modify region enum ('JONGNO', 'JUNG', 'YONGSAN', 'SEONGDONG', 'GWANGJIN', 'DONGDAEMUN', 'JUNGNANG', 'SEONGBUK', 'GANGBUK', 'DOBONG', 'NOWON', 'EUNPYEONG', 'SEODAEMUN', 'MAPO', 'YANGCHEON', 'GANGSEO', 'GURO', 'GEUMCHEON', 'YEONGDEUNGPO', 'DONGJAK', 'GWANAK', 'SEOCHO', 'GANGNAM', 'SONGPA', 'GANGDONG', 'BUNDANG') null; +alter table notification_tb modify tag enum ('ACHIEVEMENT', 'REQUEST_ARRIVAL', 'MATCHING_FINISHED', 'MATCHING_SUCCESS', 'MATCHING_FAILED', 'REVIEW_REQUEST') null; \ No newline at end of file