# ---------------------------------------------------------------------- #
# Add table "SITEMAP"                                                    #
# ---------------------------------------------------------------------- #

CREATE TABLE `SITEMAP` (
    `id_sitemap` INTEGER NOT NULL AUTO_INCREMENT,
    `descrizione` VARCHAR(40),
    `loc` VARCHAR(254),
    `priority` INTEGER,
    `flgChangefreq` INTEGER,
    `flgIncludiMainSitemap` INTEGER,
    `flgAbilita` INTEGER,
    CONSTRAINT `PK_SITEMAP` PRIMARY KEY (`id_sitemap`)
);

ALTER TABLE `MARCA` ADD COLUMN `flgIncludiMainSitemap` INTEGER;

update MARCA set flgIncludiMainSitemap=1 where flgIcecatAuto=1;

ALTER TABLE `MARCA` ADD COLUMN `nomeSeo` VARCHAR(60);


ALTER TABLE `SITEMAP` ADD COLUMN `lang` VARCHAR(3);

ALTER TABLE `SITEMAP` CHANGE `lang` `langSitemap` VARCHAR(3);

