mirror of https://github.com/halo-dev/halo
feat: support flywaydb.
parent
9217694151
commit
30656f5dee
|
@ -57,6 +57,7 @@ ext {
|
||||||
flexmarkVersion = '0.42.12'
|
flexmarkVersion = '0.42.12'
|
||||||
thumbnailatorVersion = '0.4.8'
|
thumbnailatorVersion = '0.4.8'
|
||||||
image4jVersion = '0.7zensight1'
|
image4jVersion = '0.7zensight1'
|
||||||
|
flywayVersion = '6.1.0'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
@ -98,10 +99,12 @@ dependencies {
|
||||||
|
|
||||||
implementation "net.coobird:thumbnailator:$thumbnailatorVersion"
|
implementation "net.coobird:thumbnailator:$thumbnailatorVersion"
|
||||||
implementation "net.sf.image4j:image4j:$image4jVersion"
|
implementation "net.sf.image4j:image4j:$image4jVersion"
|
||||||
|
implementation "org.flywaydb:flyway-core:$flywayVersion"
|
||||||
|
|
||||||
runtimeOnly 'com.h2database:h2'
|
runtimeOnly 'com.h2database:h2'
|
||||||
runtimeOnly 'mysql:mysql-connector-java'
|
runtimeOnly 'mysql:mysql-connector-java'
|
||||||
|
|
||||||
|
|
||||||
compileOnly 'org.projectlombok:lombok'
|
compileOnly 'org.projectlombok:lombok'
|
||||||
annotationProcessor 'org.projectlombok:lombok'
|
annotationProcessor 'org.projectlombok:lombok'
|
||||||
|
|
||||||
|
|
|
@ -36,6 +36,10 @@ spring:
|
||||||
ddl-auto: update
|
ddl-auto: update
|
||||||
show-sql: true
|
show-sql: true
|
||||||
open-in-view: false
|
open-in-view: false
|
||||||
|
flyway:
|
||||||
|
locations: classpath:/migration
|
||||||
|
baseline-on-migrate: true
|
||||||
|
baseline-version: 1
|
||||||
servlet:
|
servlet:
|
||||||
multipart:
|
multipart:
|
||||||
max-file-size: 10240MB
|
max-file-size: 10240MB
|
||||||
|
|
|
@ -35,6 +35,10 @@ spring:
|
||||||
hibernate:
|
hibernate:
|
||||||
ddl-auto: update
|
ddl-auto: update
|
||||||
show-sql: true
|
show-sql: true
|
||||||
|
flyway:
|
||||||
|
locations: classpath:/migration
|
||||||
|
baseline-on-migrate: true
|
||||||
|
baseline-version: 1
|
||||||
servlet:
|
servlet:
|
||||||
multipart:
|
multipart:
|
||||||
max-file-size: 10MB
|
max-file-size: 10MB
|
||||||
|
|
|
@ -38,6 +38,10 @@ spring:
|
||||||
ddl-auto: update
|
ddl-auto: update
|
||||||
show-sql: false
|
show-sql: false
|
||||||
open-in-view: false
|
open-in-view: false
|
||||||
|
flyway:
|
||||||
|
locations: classpath:/migration
|
||||||
|
baseline-on-migrate: true
|
||||||
|
baseline-version: 1
|
||||||
servlet:
|
servlet:
|
||||||
multipart:
|
multipart:
|
||||||
max-file-size: 10240MB
|
max-file-size: 10240MB
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
-- Migrate * to 1.1.3
|
||||||
|
|
||||||
|
-- Migrate options Table
|
Loading…
Reference in New Issue