MIFOSX-1275 : added table to maintain execution history of standing instructions

This commit is contained in:
Pramod Nuthakki
2014-06-27 11:16:28 +05:30
parent b852af14d3
commit f51cf6f4fe
8 changed files with 479 additions and 4 deletions
@@ -0,0 +1,11 @@
CREATE TABLE `m_account_transfer_standing_instructions_history` (
`id` BIGINT(20) NOT NULL AUTO_INCREMENT,
`standing_instruction_id` BIGINT(20) NOT NULL,
`status` VARCHAR(20) NOT NULL,
`execution_time` DATETIME NOT NULL,
`amount` DECIMAL(19,6) NOT NULL,
`error_log` VARCHAR(500) NULL DEFAULT NULL,
PRIMARY KEY (`id`),
INDEX `FK_m_account_transfer_standing_instructions_history` (`standing_instruction_id`),
CONSTRAINT `FK_m_account_transfer_standing_instructions_m_history` FOREIGN KEY (`standing_instruction_id`) REFERENCES `m_account_transfer_standing_instructions` (`id`)
);