-
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 #103 from LikeKNU/develop
Cafeteria 스키마 변경
- Loading branch information
Showing
11 changed files
with
65 additions
and
116 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
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
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
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
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
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
24 changes: 0 additions & 24 deletions
24
src/main/java/ac/knu/likeknu/domain/value/CafeteriaName.java
This file was deleted.
Oops, something went wrong.
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
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
36 changes: 36 additions & 0 deletions
36
src/main/resources/db/migration/mysql/V6__alter_cafeteria_table.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,36 @@ | ||
ALTER TABLE cafeteria | ||
MODIFY COLUMN cafeteria_name VARCHAR(20); | ||
|
||
ALTER TABLE cafeteria | ||
ADD COLUMN `sequence` INT; | ||
|
||
UPDATE cafeteria | ||
SET cafeteria_name = '직원식당' | ||
WHERE cafeteria_name = 'EMPLOYEE_CAFETERIA'; | ||
|
||
UPDATE cafeteria | ||
SET cafeteria_name = '학생식당' | ||
WHERE cafeteria_name = 'STUDENT_CAFETERIA'; | ||
|
||
UPDATE cafeteria | ||
SET cafeteria_name = '생활관식당' | ||
WHERE cafeteria_name = 'DORMITORY'; | ||
|
||
UPDATE cafeteria | ||
SET cafeteria_name = '늘솜' | ||
WHERE cafeteria_name = 'NEULSOM'; | ||
|
||
UPDATE cafeteria | ||
SET cafeteria_name = '소담' | ||
WHERE cafeteria_name = 'SODAM'; | ||
|
||
UPDATE cafeteria | ||
SET cafeteria_name = '은행사/비전' | ||
WHERE cafeteria_name = 'EUNHAENGSA_VISION'; | ||
|
||
UPDATE cafeteria | ||
SET cafeteria_name = '드림' | ||
WHERE cafeteria_name = 'DREAM'; | ||
|
||
ALTER TABLE cafeteria | ||
MODIFY COLUMN cafeteria_name VARCHAR(8); |
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