Commit d10017d7 authored by Frederik Wegner's avatar Frederik Wegner Committed by Julien Schröter
Browse files

Add unique constraint to roundquestion

parent da43f1f3
......@@ -778,7 +778,9 @@ DROP TABLE IF EXISTS `useranswer`;
(`user`)
REFERENCES `user` (`iduser`)
ON DELETE NO ACTION
ON UPDATE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `unique_useranswer` UNIQUE
(`user`, `roundquestion`)
)
ENGINE = InnoDB;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment