-- Deploy gaia:create_table_pushtaskpolymer_2018_08_07 to mysql

BEGIN;

-- XXX Add DDLs here.
CREATE TABLE `api_pushtaskpolymer` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `pushtask_id` integer NOT NULL,
    `polymer_id`  integer NOT NULL
);
ALTER TABLE `api_pushtaskpolymer` ADD CONSTRAINT `polymer_id_99b03c8f` FOREIGN KEY (`polymer_id`) REFERENCES `polymer_polymer` (`id`);
ALTER TABLE `api_pushtaskpolymer` ADD CONSTRAINT `pushtask_id_cc55d780` FOREIGN KEY (`pushtask_id`) REFERENCES `api_pushtask` (`id`);

COMMIT;
