-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from klaus9267/develop
Refactor(#40) 이모지 변경, bulk api 조회 범위 수정
- Loading branch information
Showing
2 changed files
with
12 additions
and
2 deletions.
There are no files selected for viewing
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
10 changes: 10 additions & 0 deletions
10
src/main/resources/db/migration/V4__change_reaction_emojis.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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
-- 기존 ENUM을 새로운 ENUM으로 변경 | ||
ALTER TABLE `reactions` | ||
CHANGE `emoji` `emoji` enum('SMILE','SHOCK','HEART','CRY','ANGRY','NONE') COLLATE utf8mb4_general_ci DEFAULT NULL; | ||
|
||
-- 기존 데이터 값 변경을 위해 필요한 경우 업데이트 쿼리 작성 | ||
UPDATE `reactions` SET `emoji` = 'NONE' WHERE `emoji` IS NULL; | ||
|
||
-- 기존 ENUM을 새로운 ENUM으로 변경 | ||
ALTER TABLE `reaction_counts` | ||
CHANGE `emoji` `emoji` enum('SMILE','SHOCK','HEART','CRY','ANGRY') COLLATE utf8mb4_general_ci NOT NULL; |