|
Sent a Git PR via https://github.com/openMF/mifosx/pull/616 .
To enable MariaDB, use:
$ gradle clean tomcatRunWar -Pmariadb
If the -P option isn't specified, then MySQL will be used.
Still left to be done (in order of priority):
1. Need to support Flyway migration to add the 2 additional columns in the tenant list database. The gradle command to import/setup the database won't work yet (since it relies on a Flyway migration). The instruction (step two) in the INSTALL.md file can be used (for now) – I added a new 'mifosng-db/mifospltaform-tenants-first-time-install-mariadb.sql' file instead (and modified 'mifosng-db/mifospltaform-tenants-first-time-install.sql').
2. The context.xml file is still the same (contains MySQL driver classname and URL prefix). I added entries in build.gradle indicating that I wasn't sure how to rename the context.xml file to support both cases (if that's a goal).
3. Update the documentation at/around https://github.com/openMF/mifosx/wiki/MySQL-Database-Setup .
4. The gradle dependencies bring-in both MySQL and MariaDB artifacts. An external file may be preferable to manage the dependencies (or drop MySQL support).
Thanks! Frederic
|