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.
This commit is contained in:
+1
@@ -52,6 +52,7 @@ public class TomcatJdbcDataSourcePerTenantService implements DataSourcePerTenant
|
|||||||
} else {
|
} else {
|
||||||
tenantDataSource = createNewDataSourceFor(tenant);
|
tenantDataSource = createNewDataSourceFor(tenant);
|
||||||
this.tenantToDataSourceMap.put(tenant.getId(), tenantDataSource);
|
this.tenantToDataSourceMap.put(tenant.getId(), tenantDataSource);
|
||||||
|
new DBMigrationHelper().migrateDB(tenantDataSource);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user