Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ public record WebsiteClubDetailResponse(
@Schema(description = "상세 μ†Œκ°œ", requiredMode = REQUIRED)
String introduce,

@Schema(description = "ν™œλ™ μœ„μΉ˜", example = "ν•™μƒνšŒκ΄€ 101호", requiredMode = REQUIRED)
String location,

@Schema(description = "λŒ€ν•™ 정보", requiredMode = REQUIRED)
University university
) {
Expand Down Expand Up @@ -80,7 +77,6 @@ public static WebsiteClubDetailResponse of(WebClub club, Long universityClubCoun
club.getTopic(),
club.getDescription(),
club.getIntroduce(),
club.getLocation(),
new University(
university.getId(),
university.getKoreanName(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@ public class WebClub extends BaseEntity {
@Column(name = "image_url", length = 255, nullable = false)
private String imageUrl;

@Column(name = "location", length = 255, nullable = false)
private String location;

@Builder
private WebClub(
Integer id,
Expand All @@ -67,8 +64,7 @@ private WebClub(
String topic,
String description,
String introduce,
String imageUrl,
String location
String imageUrl
) {
this.id = id;
this.clubCategory = clubCategory;
Expand All @@ -78,6 +74,5 @@ private WebClub(
this.description = description;
this.introduce = introduce;
this.imageUrl = imageUrl;
this.location = location;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ALTER TABLE web_club
MODIFY COLUMN location VARCHAR(255) NULL;
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ public static WebClub create(WebUniversity university, String name, ClubCategory
.description("ν•œ 쀄 μ†Œκ°œ")
.introduce("상세 μ†Œκ°œμž…λ‹ˆλ‹€.")
.imageUrl("https://example.com/" + name + ".png")
.location("ν•™μƒνšŒκ΄€ 101호")
.clubCategory(category)
.topic("μ½”λ”©")
.build();
Expand Down
Loading