Regalamiunsorriso/www/admin/_alterTable/_old/drop.sql
2026-04-07 18:02:17 +02:00

36 lines
1.6 KiB
SQL

# ---------------------------------------------------------------------- #
# 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: Database drop script #
# Created on: 2016-01-07 10:11 #
# ---------------------------------------------------------------------- #
# ---------------------------------------------------------------------- #
# Drop foreign key constraints #
# ---------------------------------------------------------------------- #
ALTER TABLE `DESTINAZIONE_DIVERSA` DROP FOREIGN KEY `CLIFOR_DESTINAZIONE_DIVERSA`;
ALTER TABLE `DESTINAZIONE_DIVERSA` DROP FOREIGN KEY `NAZIONE_DESTINAZIONE_DIVERSA`;
ALTER TABLE `DESTINAZIONE_DIVERSA` DROP FOREIGN KEY `COMUNE_DESTINAZIONE_DIVERSA`;
# ---------------------------------------------------------------------- #
# Drop table "DESTINAZIONE_DIVERSA" #
# ---------------------------------------------------------------------- #
# Remove autoinc for PK drop #
ALTER TABLE `DESTINAZIONE_DIVERSA` MODIFY `id_destinazioneDiversa` INTEGER NOT NULL;
# Drop constraints #
ALTER TABLE `DESTINAZIONE_DIVERSA` DROP PRIMARY KEY;
# Drop table #
DROP TABLE `DESTINAZIONE_DIVERSA`;