-- Deploy gaia:20200601-add_column_api_topic_aggregation to mysql

BEGIN;

ALTER TABLE api_topic_aggregation MODIFY `aggregate_id` integer NOT NULL DEFAULT 0;
ALTER TABLE api_topic_aggregation ADD COLUMN `topic_id` integer NOT NULL DEFAULT 0 AFTER `aggregate_id`;
ALTER TABLE api_topic_aggregation ADD COLUMN `group_id` integer NOT NULL DEFAULT 0 AFTER `topic_id`;
ALTER TABLE api_topic_aggregation ADD COLUMN `related_url` varchar(255) NOT NULL DEFAULT '' AFTER `group_id`;

COMMIT;
