Skip to content

Commit

Permalink
#56 [CHORE] : sql 순서 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
hye-on committed Oct 14, 2023
1 parent d5b8fc9 commit a579943
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/main/resources/migration/data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,14 @@ INSERT INTO mission_object (id, name, kr, icon, is_active, mission_id) VALUES (6
INSERT INTO mission_object (id, name, kr, icon, is_active, mission_id) VALUES (70, 'suprise', '놀란 표정', '?', 1, 3);
INSERT INTO mission_object (id, name, kr, icon, is_active, mission_id) VALUES (71, 'smile', '미소짓는 표정', '?', 1, 3);


-- avatar에 unlock_level(해금 레벨) 컬럼 추가, phase 컬럼 삭제
alter table avatar
add unlock_level int unsigned not null after price;

alter table avatar
drop column phase;

-- 아바타 (임시)
INSERT INTO avatar (id, theme, avatar_img_link, price, unlock_level, created_at) VALUES (1, '신입 병아리', 'STRING', 0, 1, '2023-10-07 20:35:51');

Expand All @@ -100,15 +108,8 @@ alter table user
alter table user
add point int unsigned default 0 not null after experience;

-- room_user에 푸쉬 알림 여부 추가
alter table room_user
add agree_push tinyint(1) default 1 null;
-- avatar에 unlock_level(해금 레벨) 컬럼 추가, phase 컬럼 삭제
alter table avatar
add unlock_level int unsigned not null after price;

alter table avatar
drop column phase;


-- alarm에 user_id, mission_id nullable 속성 수정
alter table alarm
Expand Down

0 comments on commit a579943

Please sign in to comment.