-- Deploy gaia:gaia_new_special_add_fields to mysql

BEGIN;

ALTER TABLE `api_special`
ADD COLUMN `is_show_address` bool NOT NULL DEFAULT FALSE,
ADD COLUMN `is_new_special` bool NOT NULL DEFAULT FALSE;

ALTER TABLE `api_specialitem`
ADD COLUMN `floor_id` integer ;

CREATE TABLE `api_specialstorey` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `special_id` integer NOT NULL,
    `parent_id` integer NULL,
    `related` longtext NOT NULL,
    `sort` integer NOT NULL,
    `created_time` datetime(6) NOT NULL
)
;
CREATE INDEX `api_specialstorey_9979dfe5` ON `api_specialstorey` (`special_id`);
CREATE INDEX `api_specialstorey_dda537fd` ON `api_specialstorey` (`parent_id`);
COMMIT;
