From da0445ccf6284d217abf2c0477920ac8b58c8142 Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 12 Jan 2023 14:51:44 +0100 Subject: [PATCH] add: DB removing ALTER TABLE ADD Primary Key --- BancaDati.sql | 2 -- 1 file changed, 2 deletions(-) diff --git a/BancaDati.sql b/BancaDati.sql index 21bae82..4b2d850 100644 --- a/BancaDati.sql +++ b/BancaDati.sql @@ -57,12 +57,10 @@ CREATE TABLE `utenteElenco` ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE `elencoIngredienti` /*Liste_Zutaten*/ - ADD PRIMARY KEY (`id`), ADD CONSTRAINT `FK_ElencoIngredienti_Ingredienti` FOREIGN KEY (`ingredientiID`) REFERENCES `ingredienti`(`id`), /*Liste_Zutaten hat Foreignkey von Zutaten(id)*/ ADD CONSTRAINT `FK_ElencoIngredienti_Elenco` FOREIGN KEY (`elencoID`) REFERENCES `elenco`(`id`), /*Liste_Zutaten hat Foreignkey von Liste(id)*/ ADD CONSTRAINT `FK_ElencoIngredienti_Folla` FOREIGN KEY (`follaID`) REFERENCES `folla`(`id`); /*Liste_Zutaten hat Foreignkey von Menge(id)*/ ALTER TABLE `utenteElenco` /*Benutzer_Liste*/ - ADD PRIMARY KEY (`id`), ADD CONSTRAINT `FK_UtenteElenco_Utente` FOREIGN KEY (`utenteId`) REFERENCES `utente`(`id`), /*Benutzer_Liste hat Foreignkey von Benutzer(id)*/ ADD CONSTRAINT `FK_UtenteElenco_Elenco` FOREIGN KEY (`elencoId`) REFERENCES `elenco`(`id`); /*Benutzer_Liste hat Foreignkey von Liste(id)*/