Browse Source

spring-boot-demo-flyway 完成

pull/1/head
Yangkai.Shen 5 years ago
parent
commit
9b9a24d7dc
2 changed files with 8 additions and 0 deletions
  1. +4
    -0
      spring-boot-demo-flyway/README.md
  2. +4
    -0
      spring-boot-demo-flyway/src/main/resources/application.yml

+ 4
- 0
spring-boot-demo-flyway/README.md View File

@@ -57,6 +57,10 @@ spring:
clean-disabled: true clean-disabled: true
# 校验路径下是否存在 SQL 文件 # 校验路径下是否存在 SQL 文件
check-location: false check-location: false
# 最开始已经存在表结构,且不存在 flyway_schema_history 表时,需要设置为 true
baseline-on-migrate: true
# 基础版本 0
baseline-version: 0
datasource: datasource:
url: jdbc:mysql://127.0.0.1:3306/flyway-test?useSSL=false url: jdbc:mysql://127.0.0.1:3306/flyway-test?useSSL=false
username: root username: root


+ 4
- 0
spring-boot-demo-flyway/src/main/resources/application.yml View File

@@ -7,6 +7,10 @@ spring:
clean-disabled: true clean-disabled: true
# 校验路径下是否存在 SQL 文件 # 校验路径下是否存在 SQL 文件
check-location: false check-location: false
# 最开始已经存在表结构,且不存在 flyway_schema_history 表时,需要设置为 true
baseline-on-migrate: true
# 基础版本 0
baseline-version: 0
datasource: datasource:
url: jdbc:mysql://127.0.0.1:3306/flyway-test?useSSL=false url: jdbc:mysql://127.0.0.1:3306/flyway-test?useSSL=false
username: root username: root


Loading…
Cancel
Save