upgrade sql files after demo server upgrade.
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
alter table m_loan add column group_id bigint(20) after client_id;
|
||||
alter table m_loan modify client_id bigint(20);
|
||||
alter table m_loan add constraint foreign key (`group_id`) references `m_group` (`id`);
|
||||
@@ -1,24 +0,0 @@
|
||||
CREATE TABLE `m_client_identifier` (
|
||||
`id` BIGINT(20) NOT NULL AUTO_INCREMENT,
|
||||
`client_id` BIGINT(20) NOT NULL,
|
||||
`document_type_id` INT(11) NOT NULL,
|
||||
`document_key` VARCHAR(500) NOT NULL,
|
||||
`description` VARCHAR(1000) NULL DEFAULT NULL,
|
||||
`createdby_id` BIGINT(20) NULL DEFAULT NULL,
|
||||
`lastmodifiedby_id` BIGINT(20) NULL DEFAULT NULL,
|
||||
`created_date` DATETIME NULL DEFAULT NULL,
|
||||
`lastmodified_date` DATETIME NULL DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
INDEX `FK_m_client_document_m_client` (`client_id`),
|
||||
INDEX `FK_m_client_document_m_code_value` (`document_type_id`),
|
||||
CONSTRAINT `FK_m_client_document_m_client` FOREIGN KEY (`client_id`) REFERENCES `m_client` (`id`),
|
||||
CONSTRAINT `FK_m_client_document_m_code_value` FOREIGN KEY (`document_type_id`) REFERENCES `m_code_value` (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
insert into m_code values(9,'Customer Identifier');
|
||||
|
||||
insert into m_code_value values (null,'9','Driving Licence','1');
|
||||
insert into m_code_value values (null,'9','Passport','2');
|
||||
insert into m_code_value values (null,'9','PAN Card','3');
|
||||
insert into m_code_value values (null,'9','Ration Card','4');
|
||||
insert into m_code_value values (null,'9','Other','5');
|
||||
@@ -1,3 +0,0 @@
|
||||
alter table m_loan_repayment_schedule add column principal_writtenoff_derived decimal(19,6) DEFAULT NULL after principal_completed_derived;
|
||||
alter table m_loan_repayment_schedule add column interest_writtenoff_derived decimal(19,6) DEFAULT NULL after interest_completed_derived;
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
ALTER TABLE `m_product_deposit`
|
||||
ADD COLUMN `is_lock_in_period_allowed` tinyint(1) NOT NULL DEFAULT '0' AFTER `pre_closure_interest_rate`,
|
||||
ADD COLUMN `lock_in_period` bigint(20) DEFAULT NULL AFTER `is_lock_in_period_allowed`,
|
||||
ADD COLUMN `lock_in_period_type` smallint(5) NOT NULL DEFAULT '2' AFTER `lock_in_period`;
|
||||
|
||||
ALTER TABLE `m_deposit_account`
|
||||
ADD COLUMN `is_lock_in_period_allowed` tinyint(1) NOT NULL DEFAULT '0' AFTER `pre_closure_interest_rate`,
|
||||
ADD COLUMN `lock_in_period` bigint(20) DEFAULT NULL AFTER `is_lock_in_period_allowed`,
|
||||
ADD COLUMN `lock_in_period_type` smallint(5) NOT NULL DEFAULT '2' AFTER `lock_in_period`;
|
||||
@@ -1,17 +0,0 @@
|
||||
CREATE TABLE `m_document` (
|
||||
`id` INT(20) NOT NULL AUTO_INCREMENT,
|
||||
`parent_entity_type` VARCHAR(50) NOT NULL,
|
||||
`parent_entity_id` INT(20) NOT NULL DEFAULT '0',
|
||||
`name` VARCHAR(250) NOT NULL,
|
||||
`file_name` VARCHAR(250) NOT NULL,
|
||||
`size` INT(20) NULL DEFAULT '0',
|
||||
`type` VARCHAR(50) NULL DEFAULT NULL,
|
||||
`description` VARCHAR(1000) NULL DEFAULT NULL,
|
||||
`location` VARCHAR(500) NOT NULL DEFAULT '0',
|
||||
`createdby_id` INT(20) NOT NULL,
|
||||
`lastmodifiedby_id` INT(20) NOT NULL,
|
||||
`created_date` DATETIME NOT NULL,
|
||||
`lastmodified_date` DATETIME NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
)
|
||||
ENGINE=InnoDB;
|
||||
@@ -1 +0,0 @@
|
||||
alter table m_loan_transaction drop column interest_waived_derived;
|
||||
@@ -1,6 +0,0 @@
|
||||
alter table m_product_loan drop column flexible_repayment_schedule;
|
||||
alter table m_product_loan drop column interest_rebate;
|
||||
|
||||
alter table m_loan drop column flexible_repayment_schedule;
|
||||
alter table m_loan drop column interest_rebate;
|
||||
alter table m_loan drop column interest_rebate_amount;
|
||||
-8
@@ -1,8 +0,0 @@
|
||||
alter table m_loan_transaction modify column principal_portion_derived decimal(19,6);
|
||||
|
||||
alter table m_loan_transaction modify column interest_portion_derived decimal(19,6);
|
||||
|
||||
alter table m_loan_transaction modify column charges_portion_derived decimal(19,6);
|
||||
|
||||
|
||||
alter table m_product_loan modify column arrearstolerance_amount decimal(19,6);
|
||||
Reference in New Issue
Block a user