-- Deploy gaia:20170802-add-polymer_extra_info to mysql

BEGIN;

CREATE TABLE `polymer_polymerextra` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `polymer_id` integer NOT NULL,
    `new_question_cnt` integer NOT NULL,
    `new_answer_cnt` integer NOT NULL,
    `new_reply_cnt` integer NOT NULL,
    `total_cnt` integer NOT NULL
);
ALTER TABLE `polymer_polymerextra` ADD CONSTRAINT `polymer_id_refs_id_f4b807a0` FOREIGN KEY (`polymer_id`) REFERENCES `polymer_polymer` (`id`);

COMMIT;
