-- Deploy gaia:api_2017_09_22_record_info_for_create_order to mysql

BEGIN;

CREATE TABLE `api_orderinfo` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `order_id` varchar(30) NOT NULL UNIQUE,
    `create_order_info` longtext NOT NULL DEFAULT '',
    `col_unused_1` longtext NOT NULL DEFAULT '',
    `col_unused_2` longtext NOT NULL DEFAULT '',
    `col_unused_3` longtext NOT NULL DEFAULT '',
    `col_unused_4` longtext NOT NULL DEFAULT '',
    `col_unused_5` longtext NOT NULL DEFAULT '',
    `col_unused_6` longtext NOT NULL DEFAULT '',
    `col_unused_7` longtext NOT NULL DEFAULT '',
    `col_unused_8` longtext NOT NULL DEFAULT ''
)
;

ALTER TABLE `api_settlement` ADD COLUMN `device_id` varchar(100) NOT NULL DEFAULT '';
ALTER TABLE `api_settlement` ADD INDEX `api_settlement_4a1479c2` (`device_id`);

COMMIT;
