diff --git a/BancaDati.sql b/BancaDati.sql index 7d2c36a..b782eaf 100644 --- a/BancaDati.sql +++ b/BancaDati.sql @@ -1,20 +1,6 @@ --- phpMyAdmin SQL Dump --- version 4.5.1 --- http://www.phpmyadmin.net --- --- Host: 127.0.0.1 --- Erstellungszeit: 24. Nov 2017 um 17:01 --- Server-Version: 10.1.16-MariaDB --- PHP-Version: 7.0.9 - SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; --- --- Datenbank: `blog` --- - --- -------------------------------------------------------- CREATE TABLE `ingredienti` ( /*Zutaten*/ `id` varchar(36) NOT NULL, @@ -76,7 +62,7 @@ ALTER TABLE `utente` ALTER TABLE `elencoIngredienti` 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_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`