FINERACT-1846: Translate Flyway migrations to Liquibase for version 1… (#2847)
* FINERACT-1846: Translate Flyway migrations to Liquibase for version 1.4 to 1.6 * FINERACT-1846: Translate Flyway migrations to Liquibase for version 1.4 to 1.6 Co-authored-by: Jose Alberto Hernandez <alberto@MacBook-Pro.local>
This commit is contained in:
co-authored by
Jose Alberto Hernandez
parent
a25acf0abd
commit
34680f664b
@@ -304,6 +304,26 @@ jib {
|
||||
}
|
||||
}
|
||||
|
||||
task migrateDatabase {
|
||||
doFirst {
|
||||
println 'Executing liquibase database migration to version '+"$dbVersion"
|
||||
|
||||
def dbUrl='jdbc:'+"$dbType"+'://'+"$dbHost"+':'+"$dbPort"+'/'+"$dbName"
|
||||
def changeLogFilePath='fineract-provider/src/main/resources/db/changelog/tenant/upgrades/0000_upgrade_to_'+"$dbVersion"+'.xml'
|
||||
|
||||
liquibase {
|
||||
activities {
|
||||
main {
|
||||
changeLogFile changeLogFilePath
|
||||
url dbUrl
|
||||
username project.ext.mysqlUser
|
||||
password project.ext.mysqlPassword
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
tasks.jibDockerBuild.dependsOn(bootJar)
|
||||
|
||||
// Configuration for git properties gradle plugin
|
||||
|
||||
Reference in New Issue
Block a user