# ---------------------------------------------------------------------- #
# Alter table "MARCA"                                                    #
# ---------------------------------------------------------------------- #

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


# ---------------------------------------------------------------------- #
# Alter table "TIPO"                                                     #
# ---------------------------------------------------------------------- #

ALTER TABLE `TIPO` ADD COLUMN `flgIcecatNoAuto` INTEGER;

# ---------------------------------------------------------------------- #
# Add table "WWW_AUTOMATOR"                                              #
# ---------------------------------------------------------------------- #

CREATE TABLE `WWW_AUTOMATOR` (
    `id_wwwAutomator` INTEGER NOT NULL AUTO_INCREMENT,
    `id_tipo` INTEGER(11),
    `categoriaImport` VARCHAR(40),
    `searchTxt` VARCHAR(40),
    `qtaMaxAcquistoWww` INTEGER,
    `ricarico` DECIMAL(5,2),
    `flgGoogle` INTEGER,
    CONSTRAINT `PK_WWW_AUTOMATOR` PRIMARY KEY (`id_wwwAutomator`)
);

ALTER TABLE `WWW_AUTOMATOR` ADD CONSTRAINT `TIPO_WWW_AUTOMATOR` 
    FOREIGN KEY (`id_tipo`) REFERENCES `TIPO` (`id_tipo`);




# ---------------------------------------------------------------------- #
# Alter table "WWW_AUTOMATOR"                                            #
# ---------------------------------------------------------------------- #

ALTER TABLE `WWW_AUTOMATOR` ADD COLUMN `ultimaEsecuzione` VARCHAR(6000);

ALTER TABLE `WWW_AUTOMATOR` ADD COLUMN `flgAbilita` INTEGER;


# ---------------------------------------------------------------------- #
# Alter table "WWW_AUTOMATOR"                                            #
# ---------------------------------------------------------------------- #

ALTER TABLE `WWW_AUTOMATOR` ADD COLUMN `ordine` INTEGER;


