-- Revert gaia:2016_09_23_alter_table_statistic_device_add_column_idfv from mysql

BEGIN;

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

COMMIT;
