Update entiresTable.sql

This commit is contained in:
Marcel Schwarz 2018-06-15 09:22:53 +02:00 committed by GitHub
parent 7e84260cb7
commit 87a86d72fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,7 +26,6 @@ CREATE TABLE `kd42696_ipr-projekt`.`entries` (
`absturz` LONGTEXT NOT NULL ,
`trinkspiel` LONGTEXT NOT NULL ,
PRIMARY KEY (`id`),
UNIQUE (`userID`),
UNIQUE (`tanID`)) ENGINE = InnoDB;
ALTER TABLE `entries` ADD FOREIGN KEY (`userID`) REFERENCES `user`(`ID`) ON DELETE CASCADE ON UPDATE CASCADE;