-- Deploy gaia:api_2016_02_07_create_table_seoarticle to mysql

BEGIN;

CREATE TABLE `api_seoarticle` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `title` varchar(128) NOT NULL,
    `keywords` longtext,
    `description` longtext,
    `seo_category_id` integer,
    `editor` varchar(16),
    `content` longtext
);
ALTER TABLE `api_seoarticle` ADD CONSTRAINT `seo_category_id_refs_id_6db13b75` FOREIGN KEY (`seo_category_id`) REFERENCES `api_seocategory` (`id`);
CREATE INDEX `api_seoarticle_766b0d68` ON `api_seoarticle` (`seo_category_id`);

COMMIT;
