-- Revert gaia-message:2020_05_08_modify_voice_alert_record_columns from mysql

BEGIN;

ALTER TABLE `voice_alert_record` ADD COLUMN `call_duration` DOUBLE PRECISION NOT NULL;
ALTER TABLE `voice_alert_record` ADD COLUMN `connect_duration` DOUBLE PRECISION NOT NULL;
ALTER TABLE `voice_alert_record` ADD COLUMN `connect_status` integer NOT NULL;

ALTER TABLE `voice_alert_record` DROP COLUMN `accept_time`;
ALTER TABLE `voice_alert_record` DROP COLUMN `call_from`;
ALTER TABLE `voice_alert_record` DROP COLUMN `end_calltime`;
ALTER TABLE `voice_alert_record` DROP COLUMN `failure_code`;
ALTER TABLE `voice_alert_record` DROP COLUMN `fee`;
ALTER TABLE `voice_alert_record` DROP COLUMN `mobile`;
ALTER TABLE `voice_alert_record` DROP COLUMN `start_calltime`;
ALTER TABLE `voice_alert_record` DROP COLUMN `result`;


COMMIT;
