Added support for DB Migration using flybase migration plugin. It reads the schema sql files from mifosng-db/migrations folder. Runs the files in sequence by reading V1, V2, etc so on.
This commit is contained in:
@@ -230,6 +230,32 @@ task integrationTest(type:Test){
|
||||
}
|
||||
|
||||
|
||||
apply plugin: 'flyway'
|
||||
buildscript {
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
classpath 'com.github.ben-manes:gradle-flyway-plugin:0.2'
|
||||
classpath 'mysql:mysql-connector-java:5.1.22'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
flyway {
|
||||
url = "jdbc:mysql://localhost:3306/mifostenant-default"
|
||||
user = 'root'
|
||||
password = 'mysql'
|
||||
locations = [
|
||||
'filesystem:../mifosng-db/migrations',
|
||||
]
|
||||
|
||||
//$dbName $dbUser $dbPassword
|
||||
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Support publication of artifacts versioned by topic branch.
|
||||
* CI builds supply `-P BRANCH_NAME=<TOPIC>` to gradle at build time.
|
||||
|
||||
Reference in New Issue
Block a user