-- Deploy gaia:api_2016_11_15_create_table_for_api_smart_rank to mysql

BEGIN;

CREATE TABLE `api_smart_rank` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `service_id` integer UNIQUE,
    `smart_rank` double precision NOT NULL,
    `price_data` longtext
);
ALTER TABLE `api_smart_rank` ADD CONSTRAINT `service_id_refs_id_397d3fe5` FOREIGN KEY (`service_id`) REFERENCES `api_service` (`id`);

COMMIT;
