-- Deploy gaia:api_2015_12_10_create_table_api_replyheadline to mysql

BEGIN;

CREATE TABLE `api_replyheadline` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `reply_id` integer NOT NULL,
    `is_online` bool NOT NULL,
    `create_time` datetime(6) NOT NULL
)
;
ALTER TABLE `api_replyheadline` ADD CONSTRAINT `reply_id_refs_id_0b18d844` FOREIGN KEY (`reply_id`) REFERENCES `api_topicreply` (`id`);

COMMIT;
