-- Revert gaia:2016_07_11_add_error_code from mysql

BEGIN;

ALTER TABLE `pay_wechatrefund` DROP COLUMN `err_code`;
ALTER TABLE `api_refundorder` DROP COLUMN `error`;
ALTER TABLE `api_cashbackorder` DROP COLUMN `error`;

ALTER TABLE `pay_wechatrefund` DROP COLUMN `id`;
ALTER TABLE `pay_wechatrefund` ADD PRIMARY  KEY (`refund_id`);

COMMIT;