# ---------------------------------------------------------------------- #
# Script generated with: DeZign for Databases v6.2.0                     #
# Target DBMS:           MySQL 5                                         #
# Project file:          abliaDbComuni3.dez                              #
# Project name:          DB COMUNI - ABLIA                               #
# Author:                Andrea Colzi                                    #
# Script type:           Alter database script                           #
# Created on:            2010-11-29 18:39                                #
# ---------------------------------------------------------------------- #


# ---------------------------------------------------------------------- #
# Modify table "CODA_MESSAGGI"                                           #
# ---------------------------------------------------------------------- #

ALTER TABLE `CODA_MESSAGGI` ADD COLUMN `imgTmst` CHAR(16);

# ---------------------------------------------------------------------- #
# Modify table "TEMPLATE_MSG"                                            #
# ---------------------------------------------------------------------- #

ALTER TABLE `TEMPLATE_MSG` ADD COLUMN `imgTmst` CHAR(16);

ALTER TABLE `CODA_MESSAGGI` ADD COLUMN `campagna` VARCHAR(60);

ALTER TABLE `TEMPLATE_MSG` ADD COLUMN `oggettoEmail` VARCHAR(254);
ALTER TABLE `CODA_MESSAGGI` ADD COLUMN `id_templateMsg` INTEGER;
ALTER TABLE `CODA_MESSAGGI` ADD CONSTRAINT `TEMPLATE_MSG_CODA_MESSAGGI` 
    FOREIGN KEY (`id_templateMsg`) REFERENCES `TEMPLATE_MSG` (`id_templateMsg`);
