Skip to content

Commit 9b9a24d

Browse files
committed
✨ spring-boot-demo-flyway 完成
1 parent 15977cb commit 9b9a24d

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

spring-boot-demo-flyway/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ spring:
5757
clean-disabled: true
5858
# 校验路径下是否存在 SQL 文件
5959
check-location: false
60+
# 最开始已经存在表结构,且不存在 flyway_schema_history 表时,需要设置为 true
61+
baseline-on-migrate: true
62+
# 基础版本 0
63+
baseline-version: 0
6064
datasource:
6165
url: jdbc:mysql://127.0.0.1:3306/flyway-test?useSSL=false
6266
username: root

spring-boot-demo-flyway/src/main/resources/application.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ spring:
77
clean-disabled: true
88
# 校验路径下是否存在 SQL 文件
99
check-location: false
10+
# 最开始已经存在表结构,且不存在 flyway_schema_history 表时,需要设置为 true
11+
baseline-on-migrate: true
12+
# 基础版本 0
13+
baseline-version: 0
1014
datasource:
1115
url: jdbc:mysql://127.0.0.1:3306/flyway-test?useSSL=false
1216
username: root

0 commit comments

Comments
 (0)