-- Revert gaia:2019_09_03_modify_device_ip_black_name_field from mysql

BEGIN;

ALTER TABLE `hippo_deviceblacklist` ADD COLUMN `is_delete` bool DEFAULT FALSE;
CREATE INDEX `hippo_deviceblacklist_6asd16q8` ON `hippo_deviceblacklist` (`device_id`);
ALTER TABLE `hippo_deviceblacklist` DROP INDEX `device_pull_black_type`;

ALTER TABLE `hippo_ipblacklist` ADD COLUMN `is_delete` bool  DEFAULT FALSE;
CREATE INDEX `hippo_ipblacklist_gjd2sa31` ON `hippo_ipblacklist` (`ip`);
ALTER TABLE `hippo_ipblacklist` DROP INDEX `ip_pull_black_type`;

COMMIT;
