removed hardcoded usuage of database user and password and allow this to be configured/changed in tenants table for each possible tenant.

This commit is contained in:
Keith Woodlock
2012-07-23 18:16:52 +01:00
parent de49ed95ae
commit 9e2d9340f7
12 changed files with 71 additions and 149 deletions
@@ -0,0 +1,5 @@
-- update display symbol for myanmar kyat.
UPDATE `ref_currency` SET `display_symbol` = 'K' WHERE id=92;
UPDATE `org_organisation_currency` SET `display_symbol` = 'K' WHERE id=92;
@@ -0,0 +1,13 @@
-- add extra columns to externalise hard-coded tenant information
ALTER TABLE `mifosplatform-tenants`.`tenants`
ADD COLUMN `schema_server` varchar(100) NOT NULL DEFAULT 'localhost';
ALTER TABLE `mifosplatform-tenants`.`tenants`
ADD COLUMN `schema_server_port` varchar(10) NOT NULL DEFAULT '3306';
ALTER TABLE `mifosplatform-tenants`.`tenants`
ADD COLUMN `schema_username` varchar(100) NOT NULL DEFAULT 'root';
ALTER TABLE `mifosplatform-tenants`.`tenants`
ADD COLUMN `schema_password` varchar(100) NOT NULL DEFAULT 'mysql';