-
Notifications
You must be signed in to change notification settings - Fork 8
feat: 파견 대학 테이블명 변경 및 협정 대학 테이블 추가하는 DDL 작성 #620
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
Merged
whqtker
merged 5 commits into
solid-connection:develop
from
whqtker:feat/619-add-home-university
Jan 24, 2026
Merged
Changes from 1 commit
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
4e21053
feat: 파견 대학 테이블명 변경 및 협정 대학 테이블 추가하는 DDL 작성
whqtker 6ede7cc
refactor: 테이블명 변경 및 추가에 따른 엔티티 생성
whqtker 170570d
test: 테스트 코드에서 University -> HostUniversity로 변경
whqtker 594faf3
chore: 중복 인덱스 생성 방지를 위해 인덱스 생성 제거
whqtker 147cfc2
chore: home_university 테이블에 created/updated_at 추가
whqtker 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
25 changes: 25 additions & 0 deletions
25
...ces/db/migration/V42__rename_university_to_host_university_and_create_home_university.sql
This file contains hidden or 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,25 @@ | ||
| RENAME TABLE university TO host_university; | ||
|
|
||
| ALTER TABLE university_info_for_apply | ||
| DROP FOREIGN KEY FKd0257hco6uy2utd1xccjh3fal; | ||
|
|
||
| ALTER TABLE university_info_for_apply | ||
| ADD CONSTRAINT fk_university_info_for_apply_host_university | ||
| FOREIGN KEY (university_id) REFERENCES host_university (id) ON DELETE NO ACTION; | ||
|
|
||
| CREATE TABLE IF NOT EXISTS home_university | ||
| ( | ||
| id BIGINT AUTO_INCREMENT NOT NULL, | ||
| name VARCHAR(100) NOT NULL, | ||
| CONSTRAINT `PRIMARY` PRIMARY KEY (id), | ||
| CONSTRAINT uk_home_university_name UNIQUE (name) | ||
| ); | ||
|
|
||
| ALTER TABLE host_university | ||
| ADD COLUMN home_university_id BIGINT NULL; | ||
|
|
||
| ALTER TABLE host_university | ||
| ADD CONSTRAINT fk_host_university_home_university | ||
| FOREIGN KEY (home_university_id) REFERENCES home_university (id) ON DELETE NO ACTION; | ||
|
|
||
| CREATE INDEX fk_host_university_home_university_idx ON host_university (home_university_id); | ||
whqtker marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
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.
IF NOT EXISTS는 마이그레이션 누락을 조용히 숨길 수 있어요.기존에 다른 스키마로 테이블이 존재하면 이 단계가 “조용히 통과”해 후속 오류로 번질 수 있으니, Flyway에서는 제거하는 편이 안전합니다.
🛠️ 수정 제안
🤖 Prompt for AI Agents