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:
Khushal Oza
2013-03-29 18:00:19 +05:30
parent da6ff46f4c
commit 239933fe91
5 changed files with 1602 additions and 0 deletions
+26
View File
@@ -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.