-
Notifications
You must be signed in to change notification settings - Fork 8
fix: host_university 테이블의 korean_name 필드에 unique key 추가 #645
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
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| ALTER TABLE host_university | ||
| ADD CONSTRAINT uk_host_university_korean_name UNIQUE (korean_name); | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| package com.example.solidconnection.university.repository; | ||
|
|
||
| import com.example.solidconnection.university.domain.HostUniversity; | ||
| import org.springframework.data.jpa.repository.JpaRepository; | ||
|
|
||
| public interface HostUniversityRepositoryForTest extends JpaRepository<HostUniversity, Long> { | ||
|
Contributor
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. 테스트용 Repository를 따로 생성하신 이유가 있나요?
Contributor
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. 아마 유니크키를 달면서 중복생성하면 예외가 터지니 존재하면 find하도록 바꾸신 거 같은데 맞나요?
Member
Author
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. 맞습니다 ! 테스트 코드에서 지금 다시 생각해보니, 그냥 애초에 |
||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.