Skip to content

Commit

Permalink
✨ spring-boot-demo-flyway 完成
Browse files Browse the repository at this point in the history
  • Loading branch information
xkcoding committed Mar 10, 2020
1 parent 15977cb commit 9b9a24d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spring-boot-demo-flyway/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ spring:
clean-disabled: true
# 校验路径下是否存在 SQL 文件
check-location: false
# 最开始已经存在表结构,且不存在 flyway_schema_history 表时,需要设置为 true
baseline-on-migrate: true
# 基础版本 0
baseline-version: 0
datasource:
url: jdbc:mysql://127.0.0.1:3306/flyway-test?useSSL=false
username: root
Expand Down
4 changes: 4 additions & 0 deletions spring-boot-demo-flyway/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ spring:
clean-disabled: true
# 校验路径下是否存在 SQL 文件
check-location: false
# 最开始已经存在表结构,且不存在 flyway_schema_history 表时,需要设置为 true
baseline-on-migrate: true
# 基础版本 0
baseline-version: 0
datasource:
url: jdbc:mysql://127.0.0.1:3306/flyway-test?useSSL=false
username: root
Expand Down

0 comments on commit 9b9a24d

Please sign in to comment.