File tree Expand file tree Collapse file tree 5 files changed +15
-7
lines changed
application/service/admin Expand file tree Collapse file tree 5 files changed +15
-7
lines changed Original file line number Diff line number Diff line change 1+ ALTER TABLE member
2+ DROP
3+ COLUMN notification_enabled;
Original file line number Diff line number Diff line change @@ -21,15 +21,15 @@ spring.config.activate.on-profile: local
2121
2222spring :
2323 flyway :
24- enabled : false
24+ enabled : true
2525 baseline-on-migrate : true
26- locations : classpath:db/migration
26+ locations : classpath:db/migration/dev
2727 jpa :
2828 database : MySQL
2929 open-in-view : false
3030 generate-ddl : false
3131 hibernate :
32- ddl-auto : update
32+ ddl-auto : none
3333 show-sql : true
3434 properties :
3535 hibernate :
@@ -56,14 +56,14 @@ spring:
5656 open-in-view : false
5757 generate-ddl : false
5858 hibernate :
59- ddl-auto : update
59+ ddl-auto : validate
6060 show-sql : true
6161 properties :
6262 hibernate :
6363 dialect : org.hibernate.dialect.MySQLDialect
6464
6565 flyway :
66- enabled : false
66+ enabled : true
6767 baseline-on-migrate : true
6868 locations : classpath:db/migration/dev
6969
Original file line number Diff line number Diff line change 77import org .springframework .boot .test .context .SpringBootTest ;
88import org .springframework .test .context .DynamicPropertyRegistry ;
99import org .springframework .test .context .DynamicPropertySource ;
10+ import org .springframework .test .context .TestPropertySource ;
1011import org .testcontainers .elasticsearch .ElasticsearchContainer ;
1112import org .testcontainers .junit .jupiter .Container ;
1213import org .testcontainers .junit .jupiter .Testcontainers ;
1314import org .testcontainers .utility .DockerImageName ;
1415
1516import static org .assertj .core .api .Assertions .assertThat ;
1617
17- //@DataElasticsearchTest
1818@ Testcontainers
1919@ SpringBootTest
20+ @ TestPropertySource (properties = "spring.flyway.enabled=false" )
2021class TaskflowApplicationTests {
2122
2223 @ Autowired
Original file line number Diff line number Diff line change 1212import org .springframework .test .annotation .Rollback ;
1313import org .springframework .test .context .DynamicPropertyRegistry ;
1414import org .springframework .test .context .DynamicPropertySource ;
15+ import org .springframework .test .context .TestPropertySource ;
1516import org .testcontainers .elasticsearch .ElasticsearchContainer ;
1617import org .testcontainers .junit .jupiter .Container ;
1718import org .testcontainers .junit .jupiter .Testcontainers ;
2122@ SpringBootTest
2223@ Testcontainers
2324@ Transactional
25+ @ TestPropertySource (properties = "spring.flyway.enabled=false" )
2426class AddCategoryServiceTest {
2527
2628 @ Container
Original file line number Diff line number Diff line change @@ -7,12 +7,14 @@ spring:
77 # Database 설정 정보 (H2 연동 정보)
88 datasource :
99 driver-class-name : org.h2.Driver # H2 Database 사용
10- url : jdbc:h2:mem:testdb # H2 접속 정보
10+ url : jdbc:h2:mem:testdb;DATABASE_TO_UPPER=false # H2 접속 정보
1111 username : taskflow # H2 접속 시 입력할 username 정보
1212 password : # H2 접속 시 입력할 password 정보
1313 jpa :
1414 hibernate :
1515 ddl-auto : create
16+ flyway :
17+ enabled : false
1618
1719 mail :
1820 host : smtp.gmail.com
You can’t perform that action at this time.
0 commit comments