From 35b76a7d90ee0dce638c4148eb78e1f7235274b7 Mon Sep 17 00:00:00 2001 From: John Woodlock Date: Tue, 31 Jul 2012 20:19:35 +1000 Subject: [PATCH] remove db patches --- ...h-0001-myanmar-currency-display-symbol.sql | 4 --- ...enant-database-specific-config-columns.sql | 13 ------- ...ch-0003-uganda-currency-display-symbol.sql | 4 --- ...tch-0004-add-portfolio-product-savings.sql | 15 -------- ...-0005-add-soft-deleted-flat-for-client.sql | 3 -- ...add-derived-fields-on-loan-transaction.sql | 12 ------- ...ction-strategy-table-and-relationships.sql | 34 ------------------- 7 files changed, 85 deletions(-) delete mode 100644 mifosng-db/patches-post-multi-tenant/patch-0001-myanmar-currency-display-symbol.sql delete mode 100644 mifosng-db/patches-post-multi-tenant/patch-0002-add-tenant-database-specific-config-columns.sql delete mode 100644 mifosng-db/patches-post-multi-tenant/patch-0003-uganda-currency-display-symbol.sql delete mode 100644 mifosng-db/patches-post-multi-tenant/patch-0004-add-portfolio-product-savings.sql delete mode 100644 mifosng-db/patches-post-multi-tenant/patch-0005-add-soft-deleted-flat-for-client.sql delete mode 100644 mifosng-db/patches-post-multi-tenant/patch-0006-add-derived-fields-on-loan-transaction.sql delete mode 100644 mifosng-db/patches-post-multi-tenant/patch-0007-add-loan-transaction-strategy-table-and-relationships.sql diff --git a/mifosng-db/patches-post-multi-tenant/patch-0001-myanmar-currency-display-symbol.sql b/mifosng-db/patches-post-multi-tenant/patch-0001-myanmar-currency-display-symbol.sql deleted file mode 100644 index 8a6ec4a91..000000000 --- a/mifosng-db/patches-post-multi-tenant/patch-0001-myanmar-currency-display-symbol.sql +++ /dev/null @@ -1,4 +0,0 @@ --- update display symbol for myanmar kyat. - -UPDATE `ref_currency` SET `display_symbol` = 'K' WHERE code='MMK'; -UPDATE `org_organisation_currency` SET `display_symbol` = 'K' WHERE code='MMK'; diff --git a/mifosng-db/patches-post-multi-tenant/patch-0002-add-tenant-database-specific-config-columns.sql b/mifosng-db/patches-post-multi-tenant/patch-0002-add-tenant-database-specific-config-columns.sql deleted file mode 100644 index 7bd5741e6..000000000 --- a/mifosng-db/patches-post-multi-tenant/patch-0002-add-tenant-database-specific-config-columns.sql +++ /dev/null @@ -1,13 +0,0 @@ --- 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'; diff --git a/mifosng-db/patches-post-multi-tenant/patch-0003-uganda-currency-display-symbol.sql b/mifosng-db/patches-post-multi-tenant/patch-0003-uganda-currency-display-symbol.sql deleted file mode 100644 index cc0f8a0fe..000000000 --- a/mifosng-db/patches-post-multi-tenant/patch-0003-uganda-currency-display-symbol.sql +++ /dev/null @@ -1,4 +0,0 @@ --- update display symbol for Ugandain shilling. - -UPDATE `ref_currency` SET `display_symbol` = 'USh' WHERE code='UGX'; -UPDATE `org_organisation_currency` SET `display_symbol` = 'USh' WHERE code='UGX'; diff --git a/mifosng-db/patches-post-multi-tenant/patch-0004-add-portfolio-product-savings.sql b/mifosng-db/patches-post-multi-tenant/patch-0004-add-portfolio-product-savings.sql deleted file mode 100644 index 2d0f46dcd..000000000 --- a/mifosng-db/patches-post-multi-tenant/patch-0004-add-portfolio-product-savings.sql +++ /dev/null @@ -1,15 +0,0 @@ -DROP TABLE IF EXISTS `portfolio_product_savings`; -CREATE TABLE `portfolio_product_savings` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `name` varchar(100) NOT NULL, - `description` varchar(500) DEFAULT NULL, - `createdby_id` bigint(20) DEFAULT NULL, - `created_date` datetime DEFAULT NULL, - `lastmodified_date` datetime DEFAULT NULL, - `lastmodifiedby_id` bigint(20) DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `FKJPW0000000000003` (`createdby_id`), - KEY `FKJPW0000000000004` (`lastmodifiedby_id`), - CONSTRAINT `FKJPW0000000000003` FOREIGN KEY (`createdby_id`) REFERENCES `admin_appuser` (`id`), - CONSTRAINT `FKJPW0000000000004` FOREIGN KEY (`lastmodifiedby_id`) REFERENCES `admin_appuser` (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; \ No newline at end of file diff --git a/mifosng-db/patches-post-multi-tenant/patch-0005-add-soft-deleted-flat-for-client.sql b/mifosng-db/patches-post-multi-tenant/patch-0005-add-soft-deleted-flat-for-client.sql deleted file mode 100644 index abc1226fa..000000000 --- a/mifosng-db/patches-post-multi-tenant/patch-0005-add-soft-deleted-flat-for-client.sql +++ /dev/null @@ -1,3 +0,0 @@ --- add soft delete flag for clients - -ALTER TABLE `portfolio_client` ADD COLUMN `is_deleted` tinyint(1) NOT NULL DEFAULT 0; diff --git a/mifosng-db/patches-post-multi-tenant/patch-0006-add-derived-fields-on-loan-transaction.sql b/mifosng-db/patches-post-multi-tenant/patch-0006-add-derived-fields-on-loan-transaction.sql deleted file mode 100644 index a1c83ba1f..000000000 --- a/mifosng-db/patches-post-multi-tenant/patch-0006-add-derived-fields-on-loan-transaction.sql +++ /dev/null @@ -1,12 +0,0 @@ --- add derived fields for loan transactions and extra - -ALTER TABLE `portfolio_loan_transaction` -ADD COLUMN `principal_portion_derived` decimal(19,6) NOT NULL DEFAULT 0, -ADD COLUMN `interest_portion_derived` decimal(19,6) NOT NULL DEFAULT 0, -ADD COLUMN `interest_waived_derived` decimal(19,6) NOT NULL DEFAULT 0; - - -ALTER TABLE `portfolio_loan_repayment_schedule` -ADD COLUMN `interest_waived_derived` decimal(19,6) NOT NULL DEFAULT 0; - -INSERT INTO `ref_loan_status` (`id`,`display_name`) VALUES (700, 'Overpaid'); diff --git a/mifosng-db/patches-post-multi-tenant/patch-0007-add-loan-transaction-strategy-table-and-relationships.sql b/mifosng-db/patches-post-multi-tenant/patch-0007-add-loan-transaction-strategy-table-and-relationships.sql deleted file mode 100644 index 8e4639955..000000000 --- a/mifosng-db/patches-post-multi-tenant/patch-0007-add-loan-transaction-strategy-table-and-relationships.sql +++ /dev/null @@ -1,34 +0,0 @@ --- add loan transactions processing table - -CREATE TABLE `ref_loan_transaction_processing_strategy` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `code` varchar(100) DEFAULT NULL, - `name` varchar(255) DEFAULT NULL, - `createdby_id` bigint(20) DEFAULT NULL, - `created_date` datetime DEFAULT NULL, - `lastmodifiedby_id` bigint(20) DEFAULT NULL, - `lastmodified_date` datetime DEFAULT NULL, - PRIMARY KEY (`id`), - UNIQUE KEY `ltp_strategy_code` (`code`) -) ENGINE=InnoDB AUTO_INCREMENT=1000 DEFAULT CHARSET=utf8; - - -ALTER TABLE `portfolio_product_loan` -ADD COLUMN `loan_transaction_strategy_id` bigint(20) DEFAULT NULL, -ADD KEY `FK_ltp_strategy` (`loan_transaction_strategy_id`), -ADD CONSTRAINT `FK_ltp_strategy` FOREIGN KEY (`loan_transaction_strategy_id`) REFERENCES `ref_loan_transaction_processing_strategy` (`id`); - -ALTER TABLE `portfolio_loan` -ADD COLUMN `loan_transaction_strategy_id` bigint(20) DEFAULT NULL, -ADD KEY `FK_loan_ltp_strategy` (`loan_transaction_strategy_id`), -ADD CONSTRAINT `FK_loan_ltp_strategy` FOREIGN KEY (`loan_transaction_strategy_id`) REFERENCES `ref_loan_transaction_processing_strategy` (`id`); - --- update ref table with out-of-the-box strategies - -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)'); \ No newline at end of file