-- Deploy gaia:2018_02_22_create_api_specialseckilllayout to mysql

BEGIN;

CREATE TABLE `api_specialresource` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `special_id` integer NOT NULL,
    `rank` integer NOT NULL default 200,
    `image_data` longtext NOT NULL
)
;
ALTER TABLE `api_specialresource` ADD CONSTRAINT `special_id_refs_id_dddc6b89` FOREIGN KEY (`special_id`) REFERENCES `api_special` (`id`);

COMMIT;
