fix validation on inArrearsTolerance for loan creation, update sql after production and demo server upgrade.
This commit is contained in:
@@ -1,45 +0,0 @@
|
||||
-- Make classification an enumeration for GL Account table
|
||||
update acc_gl_account
|
||||
set acc_gl_account.classification=1 where acc_gl_account.classification="ASSET";
|
||||
|
||||
update acc_gl_account
|
||||
set acc_gl_account.classification=2 where acc_gl_account.classification="LIABILITY";
|
||||
|
||||
update acc_gl_account
|
||||
set acc_gl_account.classification=3 where acc_gl_account.classification="EQUITY";
|
||||
|
||||
update acc_gl_account
|
||||
set acc_gl_account.classification=4 where acc_gl_account.classification="INCOME";
|
||||
|
||||
update acc_gl_account
|
||||
set acc_gl_account.classification=5 where acc_gl_account.classification="EXPENSE";
|
||||
|
||||
|
||||
ALTER TABLE `acc_gl_account`
|
||||
ALTER `classification` DROP DEFAULT;
|
||||
ALTER TABLE `acc_gl_account`
|
||||
CHANGE COLUMN `classification` `classification_enum` SMALLINT(5) NOT NULL AFTER `header_account`;
|
||||
|
||||
-- Rename is header account to usage in GL Account Table
|
||||
|
||||
update acc_gl_account
|
||||
set acc_gl_account.header_account=2 where acc_gl_account.header_account=1;
|
||||
|
||||
update acc_gl_account
|
||||
set acc_gl_account.header_account=1 where acc_gl_account.header_account=0;
|
||||
|
||||
ALTER TABLE `acc_gl_account`
|
||||
CHANGE COLUMN `header_account` `account_usage` TINYINT(1) NOT NULL DEFAULT '2' AFTER `manual_journal_entries_allowed`;
|
||||
|
||||
-- Update Type in journal entries table
|
||||
|
||||
update acc_gl_journal_entry
|
||||
set acc_gl_journal_entry.type=1 where acc_gl_journal_entry.type="CREDIT";
|
||||
|
||||
update acc_gl_journal_entry
|
||||
set acc_gl_journal_entry.type=2 where acc_gl_journal_entry.type="DEBIT";
|
||||
|
||||
ALTER TABLE `acc_gl_journal_entry`
|
||||
ALTER `type` DROP DEFAULT;
|
||||
ALTER TABLE `acc_gl_journal_entry`
|
||||
CHANGE COLUMN `type` `type_enum` SMALLINT(50) NOT NULL AFTER `entry_date`;
|
||||
@@ -1,4 +0,0 @@
|
||||
ALTER TABLE m_note
|
||||
ADD COLUMN `saving_account_id` bigint(20) DEFAULT NULL AFTER `deposit_account_id`,
|
||||
ADD KEY `FK_m_note_m_saving_account` (`saving_account_id`),
|
||||
ADD CONSTRAINT `FK_m_note_m_saving_account` FOREIGN KEY (`saving_account_id`) REFERENCES `m_saving_account` (`id`);
|
||||
@@ -1,21 +0,0 @@
|
||||
DROP TABLE IF EXISTS `m_saving_account_transaction`;
|
||||
CREATE TABLE `m_saving_account_transaction` (
|
||||
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
||||
`saving_account_id` bigint(20) NOT NULL,
|
||||
`transaction_type_enum` smallint(5) NOT NULL,
|
||||
`contra_id` bigint(20) DEFAULT NULL,
|
||||
`transaction_date` date NOT NULL,
|
||||
`amount` decimal(19,6) NOT 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 `FKSAT0000000001` (`saving_account_id`),
|
||||
KEY `FKSAT0000000002` (`contra_id`),
|
||||
CONSTRAINT `FKSAT0000000001` FOREIGN KEY (`saving_account_id`) REFERENCES `m_saving_account` (`id`),
|
||||
CONSTRAINT `FKSAT0000000002` FOREIGN KEY (`contra_id`) REFERENCES `m_saving_account_transaction` (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
ALTER TABLE `m_saving_account`
|
||||
ADD COLUMN `outstanding_amount` decimal(19,6) NOT NULL AFTER `pre_closure_interest_rate`;
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
Alter TABLE `m_saving_account`
|
||||
add column `interest_posting_every` int(11) DEFAULT NULL AFTER `frequency`,
|
||||
add column `interest_posting_frequency` int(11) DEFAULT NULL AFTER `interest_posting_every`;
|
||||
@@ -1,4 +0,0 @@
|
||||
ALTER TABLE `m_saving_account`
|
||||
ADD COLUMN `interest_posted_amount` decimal(19,6) DEFAULT '0.000000' AFTER `outstanding_amount`,
|
||||
ADD COLUMN `last_interest_posted_date` date DEFAULT NULL AFTER `interest_posted_amount`,
|
||||
ADD COLUMN `next_interest_posting_date` date DEFAULT NULL AFTER `last_interest_posted_date`;
|
||||
@@ -1,3 +0,0 @@
|
||||
Alter TABLE `m_saving_schedule`
|
||||
ADD COLUMN `interest_accured` decimal(21,4) DEFAULT '0.0000' AFTER `deposit_paid`
|
||||
|
||||
Reference in New Issue
Block a user