tidy up sql patchs and demo dumps to latest version of platform.

This commit is contained in:
Keith Woodlock
2012-07-30 18:12:04 +01:00
parent 68ea71a68f
commit a500fe553f
5 changed files with 74 additions and 1007 deletions
@@ -33,6 +33,7 @@ DROP TABLE IF EXISTS `admin_role`;
-- drop reference/lookup tables
DROP TABLE IF EXISTS `ref_currency`;
DROP TABLE IF EXISTS `ref_loan_status`;
DROP TABLE IF EXISTS `ref_loan_transaction_processing_strategy`;
-- additional data and report tables
DROP TABLE IF EXISTS `stretchydata_dataset_fields`;
@@ -286,6 +287,7 @@ CREATE TABLE `portfolio_loan` (
`client_id` bigint(20) NOT NULL,
`product_id` bigint(20) DEFAULT NULL,
`fund_id` bigint(20) DEFAULT NULL,
`loan_transaction_strategy_id` bigint(20) DEFAULT NULL,
`loan_status_id` smallint(5) NOT NULL,
`currency_code` varchar(3) NOT NULL,
`currency_digits` smallint(5) NOT NULL,
@@ -326,6 +328,8 @@ CREATE TABLE `portfolio_loan` (
KEY `FKB6F935D8C8D4B434` (`product_id`),
KEY `FK7C885878B1147D1` (`loan_status_id`),
KEY `FK7C885877240145` (`fund_id`),
KEY `FK_loan_ltp_strategy` (`loan_transaction_strategy_id`),
CONSTRAINT `FK_loan_ltp_strategy` FOREIGN KEY (`loan_transaction_strategy_id`) REFERENCES `ref_loan_transaction_processing_strategy` (`id`),
CONSTRAINT `FK7C885877240145` FOREIGN KEY (`fund_id`) REFERENCES `org_fund` (`id`),
CONSTRAINT `FK7C885878B1147D1` FOREIGN KEY (`loan_status_id`) REFERENCES `ref_loan_status` (`id`),
CONSTRAINT `FKB6F935D87179A0CB` FOREIGN KEY (`client_id`) REFERENCES `portfolio_client` (`id`),
@@ -1,5 +1,13 @@
-- currency symbols may not apply through command line on windows so use a different client like mysql workbench
INSERT INTO `ref_loan_transaction_processing_strategy`
(`id`,`code`,`name`)
VALUES
(1, 'mifos-standard-strategy', 'Mifos style'),
(2, 'heavensfamily-strategy', 'Heavensfamily'),
(3, 'creocore-strategy', 'Creocore'),
(4, 'rbi-india-strategy', 'RBI (India)');
INSERT INTO `ref_loan_status`
(`id`,`display_name`)
VALUES
File diff suppressed because one or more lines are too long