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:
José Alberto Hernández
2023-01-06 14:20:15 -06:00
committed by GitHub
co-authored by Jose Alberto Hernandez
parent a25acf0abd
commit 34680f664b
4 changed files with 681 additions and 0 deletions
+20
View File
@@ -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