-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: lecutre 테이블 컬럼 수정 #1065
Open
Soundbar91
wants to merge
8
commits into
develop
Choose a base branch
from
fix/1063-modify-lecture-entity
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
fix: lecutre 테이블 컬럼 수정 #1065
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
b479e4b
feat: lecture 자료형 컬럼 사이즈 변경 flyway 추가
Soundbar91 c5213e1
feat: lecture 테이블에 semester fk 추가
Soundbar91 7d66045
feat: semester_date 삭제
Soundbar91 a2a87d6
test: 테스트 코드 수정
Soundbar91 a6ab38a
test: 테스트 코드 수정
Soundbar91 4c4754e
chore: semester로 수정
Soundbar91 8db1ab6
test: 테스트 코드 수정
Soundbar91 8bb7ecc
chore: 리뷰 반영
Soundbar91 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
2 changes: 2 additions & 0 deletions
2
src/main/resources/db/migration/V103__alter_lecture_class_time.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,2 @@ | ||
ALTER TABLE `koin`.`lectures` | ||
MODIFY COLUMN `class_time` VARCHAR(255) NOT NULL; |
13 changes: 13 additions & 0 deletions
13
src/main/resources/db/migration/V104__alter_lecture_class_semester_fk.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,13 @@ | ||
ALTER TABLE `koin`.`lectures` | ||
ADD COLUMN `semester_id` INT UNSIGNED NOT NULL; | ||
|
||
UPDATE `koin`.`lectures` l | ||
SET `semester_id` = (SELECT `id` | ||
FROM `koin`.`semester` s | ||
WHERE l.`semester_date` = s.`semester`); | ||
|
||
ALTER TABLE `koin`.`lectures` | ||
ADD CONSTRAINT `FK_LECTURES_ON_SEMESTER` | ||
FOREIGN KEY (`semester_id`) | ||
REFERENCES `koin`.`semester` (`id`) | ||
ON UPDATE CASCADE; |
2 changes: 2 additions & 0 deletions
2
src/main/resources/db/migration/V105__alter_lecture_drop_semester_date_column.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,2 @@ | ||
ALTER TABLE `koin`.`lectures` | ||
DROP COLUMN `semester_date`; | ||
Comment on lines
+1
to
+2
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. C컬럼 삭제..하는 과정에서 flyway 오류가 안 날지 모르겠네용 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 흠,, 일단은 컬럼을 삭제하지 않는 방향이 적절할까요..? |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
C
DML이랑 DDL이 같이 있네요👀(분리..!!)
추가적으로 최근에 진호님이 PR 올리신 내용이 있어서 한 번 확인해보시는 것도 좋을 거 같아요
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
헉,, 감사합니다 !