-- Deploy gaia:api_2016_05_12_create_api_wikiadver to mysql

BEGIN;

CREATE TABLE `api_wikiadver` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `image_header` varchar(300) NOT NULL,
    `download_link` varchar(300) NOT NULL,
    `tag_id` integer NOT NULL
)
;
ALTER TABLE `api_wikiadver` ADD CONSTRAINT `tag_id_refs_id_e7b12d23` FOREIGN KEY (`tag_id`) REFERENCES `api_tag` (`id`);

COMMIT;
