-- Deploy gaia:api_2019_11_08_alter_table_api_bdtransfer_and_api_bdtransfer_singlerecord_add_column to mysql

BEGIN;

-- XXX Add DDLs here.
ALTER TABLE `api_bdtransfer` ADD COLUMN `client_id`  varchar (8) unique;
ALTER TABLE `api_bdtransfer_singlerecord` ADD COLUMN `comment` VARCHAR (500);
ALTER TABLE `api_bdtransfer_singlerecord` ADD COLUMN `consume_image` VARCHAR (200) DEFAULT '';
ALTER TABLE `api_bdtransfer_singlerecord` ADD COLUMN `consume_projects` VARCHAR (5000);
ALTER TABLE `api_bdtransfer_singlerecord` ADD COLUMN `duplicate_comment` VARCHAR (200);
ALTER TABLE `api_bdtransfer_singlerecord` ADD COLUMN `duplicate_image` VARCHAR (200) DEFAULT '';
ALTER TABLE `api_bdtransfer_singlerecord` ADD COLUMN `operation_time` DATETIME(6);
ALTER TABLE `api_bdtransfer_singlerecord` ADD COLUMN `is_consume` TINYINT(1) DEFAULT 0;
COMMIT;
