-- Deploy gaia:polymer_2018_09_28_create_table_deliver_polymer to mysql

BEGIN;

CREATE TABLE `polymer_deliverpolymer` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `polymer_id` integer NOT NULL,
    `rank` integer NOT NULL,
    `deliver_count` integer NOT NULL,
    `is_online` bool NOT NULL
)
;
ALTER TABLE `polymer_deliverpolymer` ADD CONSTRAINT `polymer_id_refs_id_33165b25` FOREIGN KEY (`polymer_id`) REFERENCES `polymer_polymer` (`id`);
CREATE INDEX `polymer_deliverpolymer_99b03c8f` ON `polymer_deliverpolymer` (`polymer_id`);


COMMIT;
