# ---------------------------------------------------------------------- #
# Script generated with: DeZign for Databases V7.3.4                     #
# Target DBMS:           MySQL 5                                         #
# Project file:          abliaDbComuni3.dez                              #
# Project name:          DB COMUNI - ABLIA                               #
# Author:                Andrea Colzi                                    #
# Script type:           Alter database script                           #
# Created on:            2016-01-14 12:19                                #
# ---------------------------------------------------------------------- #


# ---------------------------------------------------------------------- #
# Drop foreign key constraints                                           #
# ---------------------------------------------------------------------- #


# ---------------------------------------------------------------------- #
# Modify table "PIANO_CONTI"                                             #
# ---------------------------------------------------------------------- #

ALTER TABLE `PIANO_CONTI` ADD COLUMN `contoCompleto` VARCHAR(40);

ALTER TABLE `PIANO_CONTI` ADD COLUMN `mastro` VARCHAR(40);

ALTER TABLE `PIANO_CONTI` ADD COLUMN `sottoconto` VARCHAR(40);

ALTER TABLE `PIANO_CONTI` MODIFY `contoCompleto` VARCHAR(40) AFTER `id_pianoConti`;

ALTER TABLE `PIANO_CONTI` MODIFY `descrizione` VARCHAR(254) AFTER `contoCompleto`;

ALTER TABLE `PIANO_CONTI` MODIFY `flgTipo` INTEGER AFTER `descrizione`;

ALTER TABLE `PIANO_CONTI` MODIFY `flgCFBI` INTEGER AFTER `flgTipo`;

ALTER TABLE `PIANO_CONTI` MODIFY `flgMovimentabile` INTEGER AFTER `flgCFBI`;

ALTER TABLE `PIANO_CONTI` MODIFY `mastro` VARCHAR(40) AFTER `flgMovimentabile`;

ALTER TABLE `PIANO_CONTI` MODIFY `conto` VARCHAR(40) AFTER `mastro`;

# ---------------------------------------------------------------------- #
# Add foreign key constraints                                            #
# ---------------------------------------------------------------------- #
