Commit Graph
10 Commits
Author SHA1 Message Date
Khushal Oza 4bda6f3d43 Added seperate gradle tasks for migrating a list DB and a tenant DB. No need to now pass a folder name. Discussed with Vishwas, and modified the war task to pick up the migration files from the appropriate folder... core_db folder. 2013-04-04 16:14:20 +05:30
Khushal Oza 8956ef35a3 [Khushal/Priti] Modified build.gradle to have tasks for migrating both types of DB. Added migrateDB and showDBInfo with params as DB name. They wrap over flyway so that one can pass DB name as param. Also seperated the migration folder into list_db and core_db so that migrations for tenant list and core tenent db can be placed in different folders. 2013-04-04 12:21:18 +05:30
Khushal Oza 5c73a46f2a Khushal/Gurpreet: Added task in gradle for creating and droping database- createDatabase and dropDatabase 2013-04-01 16:00:25 +05:30
Khushal Oza 239933fe91 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. 2013-03-29 18:00:19 +05:30
Khushal Oza da6ff46f4c Removed the DBHelper class. We dont need it now. Will be upgrading the DB from gradle using the flyway plugin 2013-03-29 17:55:49 +05:30
Khushal Oza 3b041ab507 Removed call to DB helper. We will instead perform migration from Command line or Gradle 2013-03-29 16:41:58 +05:30
Khushal Oza f6bcd1fb8a Merge branch 'flyway_support' of github.com:khushaloza/mifosx into flyway_support
* 'flyway_support' of github.com:khushaloza/mifosx:
  Khushal/Gurpreet: Added support for Flyway DB migration tool into MifosX. Added a call for it in TomatJDBCDataSourcePerTenantService so that it gets called per tenant once.
2013-03-29 16:39:15 +05:30
Khushal Oza ee5ffbc883 removing the call to DB helper, since we want to do migration by command/gradle instead of automatically thru server 2013-03-29 16:37:54 +05:30
Khushal Oza 72eb99432a Khushal/Gurpreet: Added support for Flyway DB migration tool into MifosX. Added a call for it in TomatJDBCDataSourcePerTenantService so that it gets called per tenant once. 2013-03-29 16:33:41 +05:30
Khushal Oza ddc2a6e852 Khushal/Gurpreet: Added support for Flyway DB migration tool into MifosX. Added a call for it in TomatJDBCDataSourcePerTenantService so that it gets called per tenant once. 2013-03-29 15:41:39 +05:30