# ---------------------------------------------------------------------- #
# Modify table "MOVIMENTO"                                               #
# ---------------------------------------------------------------------- #

ALTER TABLE `MOVIMENTO` ADD COLUMN `id_causaleMagazzino` INTEGER;

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

ALTER TABLE `MOVIMENTO` ADD CONSTRAINT `CAUSALE_MAGAZZINO_MOVIMENTO` 
    FOREIGN KEY (`id_causaleMagazzino`) REFERENCES `CAUSALE_MAGAZZINO` (`id_causaleMagazzino`);
