-- Deploy gaia:api_2016_11_14_create_table_api_speciallayout to mysql

BEGIN;

CREATE TABLE `api_speciallayout` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `special_id` integer NOT NULL,
    `is_visible` bool NOT NULL,
    `module` integer NOT NULL,
    `related` longtext NOT NULL
)
;
ALTER TABLE `api_speciallayout` ADD CONSTRAINT `special_id_refs_id_efcf9dda` FOREIGN KEY (`special_id`) REFERENCES `api_special` (`id`);

COMMIT;
