diff --git a/mifosng-db/patches/patch-0001-add-deposit_account_id-for-m_note.sql b/mifosng-db/patches/patch-0001-add-deposit_account_id-for-m_note.sql new file mode 100644 index 000000000..9dea4bf63 --- /dev/null +++ b/mifosng-db/patches/patch-0001-add-deposit_account_id-for-m_note.sql @@ -0,0 +1,4 @@ +ALTER TABLE `m_note` +ADD COLUMN `deposit_account_id` bigint(20) DEFAULT NULL AFTER `loan_transaction_id`, +ADD KEY `FK_m_note_m_deposit_account` (`deposit_account_id`), +ADD CONSTRAINT `FK_m_note_m_deposit_account` FOREIGN KEY (`deposit_account_id`) REFERENCES `m_deposit_account` (`id`);