-- Deploy gaia:2019_01_04_create_table_api_bdtransfer_thread_income to mysql



BEGIN;

-- XXX Add DDLs here.
ALTER TABLE `api_bdtransfer_daychangelog` ADD COLUMN `thread_id` integer NOT NULL default 0;

CREATE TABLE `api_bdtransfer_thread_income` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `thread_id` integer NOT NULL,
    `order_price` integer NOT NULL,
    `commission` integer NOT NULL
)
;


COMMIT;
