-- Revert gaia:2016_09_23_alter_table_statistic_device_doctor_add_column_idfv from mysql

BEGIN;

ALTER TABLE `statistic_device_doctor` DROP INDEX `unique_device`;
ALTER TABLE `statistic_device_doctor` ADD CONSTRAINT  `unique_device` UNIQUE (`platform`, `device_id`);
ALTER TABLE `statistic_device_doctor` DROP COLUMN `idfv`;

COMMIT;
