-- Deploy gaia:api_2016_07_04_create_table_api_specialgadget to mysql

BEGIN;

-- XXX Add DDLs here.
CREATE TABLE `api_specialgadget` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `special_id` integer NOT NULL,
    `ordering` integer NOT NULL,
    `created_time` datetime(6) NOT NULL,
    `image_data` longtext NOT NULL
)
;
ALTER TABLE `api_specialgadget` ADD CONSTRAINT `special_id_refs_id_0af1454e` FOREIGN KEY (`special_id`) REFERENCES `api_special` (`id`);

COMMIT;
