File: /www/exchange0old/sql/archive/2016-01-21-271.sql
ALTER TABLE `investor_investments` ADD COLUMN `is_completed` TINYINT UNSIGNED NULL DEFAULT '0' AFTER `remove_comment`;
ALTER TABLE `investor_investments` ADD COLUMN `change_principal` DECIMAL(10,2) UNSIGNED NULL DEFAULT '0.00' AFTER `amount`;
ALTER TABLE `investor_investments` ADD COLUMN `change_date` DATE NULL DEFAULT NULL AFTER `change_principal`;
ALTER TABLE `invoice_closed` DROP INDEX `invoice_bidding_id`, DROP INDEX `closed_ref_id`, DROP INDEX `invoice_id`, ADD INDEX `invoice_id` (`invoice_id`);
ALTER TABLE `investor_investments` ADD INDEX `Index 3` (`investment_type`), ADD INDEX `Index 4` (`investment_date`), ADD INDEX `Index 5` (`currency_id`);
ALTER TABLE `invoice_closed` ADD INDEX `close_time` (`close_time`);