MIFOSX-172: wip - support for loan disbursal and undo with reversing transactions.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
ALTER TABLE `m_loan_transaction`
|
||||
ADD COLUMN `is_reversed` TINYINT(1) NOT NULL AFTER `penalty_charges_portion_derived`;
|
||||
|
||||
-- === update is_reversed column to true for all fields where contra_id is not null
|
||||
|
||||
UPDATE `m_loan_transaction` SET `is_reversed` = 1 WHERE contra_id is not null;
|
||||
|
||||
ALTER TABLE `m_loan_transaction` DROP FOREIGN KEY `FKCFCEA426FC69F3F1`;
|
||||
ALTER TABLE `m_loan_transaction`
|
||||
DROP COLUMN `contra_id` ,
|
||||
DROP INDEX `FKCFCEA426FC69F3F1`;
|
||||
Reference in New Issue
Block a user