remove db patches
This commit is contained in:
@@ -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';
|
||||
-13
@@ -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';
|
||||
@@ -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';
|
||||
@@ -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;
|
||||
@@ -1,3 +0,0 @@
|
||||
-- add soft delete flag for clients
|
||||
|
||||
ALTER TABLE `portfolio_client` ADD COLUMN `is_deleted` tinyint(1) NOT NULL DEFAULT 0;
|
||||
-12
@@ -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');
|
||||
-34
@@ -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)');
|
||||
Reference in New Issue
Block a user