File: /www/exchange2/sql/archive/2016-03-01-39.sql
DROP TABLE `invoices_to_close`;
DROP TABLE `invoice_repurchase`;
DROP TABLE `invoice_repurchase_attributes`;
DROP TABLE `invoice_repurchase_closed`;
CREATE TABLE `repurchase_history` (
`invoice_id` MEDIUMINT(9) UNSIGNED NULL DEFAULT NULL,
`old_investor_id` MEDIUMINT(9) UNSIGNED NULL DEFAULT NULL,
`new_investor_id` MEDIUMINT(9) UNSIGNED NULL DEFAULT NULL,
`repurchase_date` DATETIME NULL DEFAULT NULL,
INDEX `Index 1` (`invoice_id`, `old_investor_id`, `new_investor_id`)
)
COLLATE='utf8_general_ci'
ENGINE=InnoDB
ROW_FORMAT=DEFAULT;