feat: support flywaydb.

pull/755/head
ruibaby 2019-12-02 12:53:15 +08:00
parent 9217694151
commit 30656f5dee
5 changed files with 18 additions and 0 deletions

View File

@ -57,6 +57,7 @@ ext {
flexmarkVersion = '0.42.12'
thumbnailatorVersion = '0.4.8'
image4jVersion = '0.7zensight1'
flywayVersion = '6.1.0'
}
dependencies {
@ -98,10 +99,12 @@ dependencies {
implementation "net.coobird:thumbnailator:$thumbnailatorVersion"
implementation "net.sf.image4j:image4j:$image4jVersion"
implementation "org.flywaydb:flyway-core:$flywayVersion"
runtimeOnly 'com.h2database:h2'
runtimeOnly 'mysql:mysql-connector-java'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'

View File

@ -36,6 +36,10 @@ spring:
ddl-auto: update
show-sql: true
open-in-view: false
flyway:
locations: classpath:/migration
baseline-on-migrate: true
baseline-version: 1
servlet:
multipart:
max-file-size: 10240MB

View File

@ -35,6 +35,10 @@ spring:
hibernate:
ddl-auto: update
show-sql: true
flyway:
locations: classpath:/migration
baseline-on-migrate: true
baseline-version: 1
servlet:
multipart:
max-file-size: 10MB

View File

@ -38,6 +38,10 @@ spring:
ddl-auto: update
show-sql: false
open-in-view: false
flyway:
locations: classpath:/migration
baseline-on-migrate: true
baseline-version: 1
servlet:
multipart:
max-file-size: 10240MB

View File

@ -0,0 +1,3 @@
-- Migrate * to 1.1.3
-- Migrate options Table