-- Revert gaia:2017_07_03_add_pos_machine from mysql

BEGIN;

    DROP TABLE `api_posmachine`;
    DROP TABLE `api_posrecord`;
    DROP TABLE `api_posrecord_sum`;
    ALTER TABLE `pay_statement` DROP COLUMN `pos_back`;
    ALTER TABLE `pay_statement` DROP COLUMN `sub_data`;

COMMIT;
