update sql for multi-tenant setup.

This commit is contained in:
Keith Woodlock
2012-07-20 12:29:18 +01:00
parent 6c98381d94
commit 3e3d0055a9
5 changed files with 1 additions and 3859 deletions
@@ -0,0 +1,19 @@
-- create tenants table
DROP TABLE IF EXISTS `mifosplatform-tenants`.`tenants`;
CREATE TABLE `mifosplatform-tenants`.`tenants` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`identifier` varchar(100) NOT NULL,
`name` varchar(100) NOT NULL,
`schema_name` varchar(100) NOT NULL,
`timezone_id` int(11) DEFAULT NULL,
`country_id` int(11) DEFAULT NULL,
`joined_date` date DEFAULT NULL,
`created_date` datetime DEFAULT NULL,
`lastmodified_date` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
INSERT INTO `mifosplatform-tenants`.`tenants`
(`id`,`name`, `identifier`,`schema_name`)
VALUES
(1, 'Default Demo Tenant', 'default' ,'mifostenant-default');