Skip to content

Commit

Permalink
[ etc ] Remove flyway
Browse files Browse the repository at this point in the history
  • Loading branch information
Minuooooo committed Aug 22, 2023
1 parent d8c500e commit 1618f71
Show file tree
Hide file tree
Showing 12 changed files with 194 additions and 1,188 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ dependencies {
implementation 'io.awspring.cloud:spring-cloud-aws-core:2.4.4'

// Flyway
implementation 'org.flywaydb:flyway-core'
implementation 'org.flywaydb:flyway-mysql'
// implementation 'org.flywaydb:flyway-core'
// implementation 'org.flywaydb:flyway-mysql'

implementation 'org.thymeleaf.extras:thymeleaf-extras-springsecurity5'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class GetSimpleStoreInfosResponseDto { // 스토어 목록에 보여주
public static GetSimpleStoreInfosResponseDto from(Store store, boolean isBookmarked) {
return GetSimpleStoreInfosResponseDto.builder()
.id(store.getId())
.category(store.getCategory().getName())
.category(store.getCategory())
.name(store.getName())
.imageUrl(store.getImageUrl())
.location(store.getLocation().substring(0, 2)) // 지역 별 필터링을 위한 지역 키워드 추출 (Ex. 서울, 경기, 인천, 충남, 충북 등)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class GetStoreInfoResponseDto { // 스토어 상세 정보
public static GetStoreInfoResponseDto from(Store store) {
return GetStoreInfoResponseDto.builder()
.id(store.getId())
.category(store.getCategory().getName())
.category(store.getCategory())
.name(store.getName())
.webUrl(store.getWebUrl())
.imageUrl(store.getImageUrl())
Expand Down
16 changes: 0 additions & 16 deletions src/main/java/greeny/backend/domain/store/entity/Category.java

This file was deleted.

3 changes: 1 addition & 2 deletions src/main/java/greeny/backend/domain/store/entity/Store.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,8 @@ public class Store extends AuditEntity {
@OneToMany(mappedBy = "store", cascade = ALL, orphanRemoval = true)
private Set<StoreBookmark> storeBookmarks = new HashSet<>();

@Enumerated(EnumType.STRING)
@Column(nullable = false)
private Category category;
private String category;
@Column(nullable = false)
private String name;
private String webUrl;
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ spring:
username: greeny
password: 1234

flyway:
enabled: false
# flyway:
# enabled: false

# flyway:
# locations: classpath:/db/migration
Expand Down
10 changes: 5 additions & 5 deletions src/main/resources/application-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ spring:
username: ${SPRING_DATASOURCE_USERNAME}
password: ${SPRING_DATASOURCE_PASSWORD}

flyway:
locations: classpath:/db/migration
encoding: UTF-8
check-location: false
baseline-on-migration: true
# flyway:
# locations: classpath:/db/migration
# encoding: UTF-8
# check-location: false
# baseline-on-migration: true

jpa:
open-in-view: false
Expand Down
238 changes: 0 additions & 238 deletions src/main/resources/db/migration/V1__init.sql

This file was deleted.

Loading

0 comments on commit 1618f71

Please sign in to comment.