Skip to content

Commit ee7ae8b

Browse files
authored
Merge pull request #261 from SEMOSAN/fix/#260-remove-restaurant-section-columns
[Fix] RestaurantSection 불필요 컬럼 제거
2 parents 39fa07e + a062098 commit ee7ae8b

2 files changed

Lines changed: 5 additions & 12 deletions

File tree

src/main/java/com/semosan/api/domain/mountain/entity/RestaurantSection.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,6 @@ public class RestaurantSection extends BaseEntity {
2626
@Column(name = "title", nullable = false, length = 100)
2727
private String title;
2828

29-
@Column(name = "menu", length = 100)
30-
private String menu;
31-
32-
@Column(name = "description", length = 255)
33-
private String description;
34-
35-
@Column(name = "map_url", columnDefinition = "TEXT")
36-
private String mapUrl;
37-
38-
@Column(name = "blog_url", columnDefinition = "TEXT")
39-
private String blogUrl;
40-
4129
@OneToMany(mappedBy = "section", fetch = FetchType.LAZY)
4230
@Builder.Default
4331
private List<Restaurant> restaurants = new ArrayList<>();
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
ALTER TABLE restaurant_sections
2+
DROP COLUMN menu,
3+
DROP COLUMN description,
4+
DROP COLUMN map_url,
5+
DROP COLUMN blog_url;

0 commit comments

Comments
 (0)