backend: save the checksum of each try, to be able to detect duplicates after

This commit is contained in:
nemunaire 2018-11-21 03:22:42 +01:00 committed by Pierre-Olivier Mercier
commit 333bb408e1
3 changed files with 15 additions and 5 deletions

View file

@ -244,6 +244,7 @@ CREATE TABLE IF NOT EXISTS exercice_tries(
id_exercice INTEGER NOT NULL,
id_team INTEGER NOT NULL,
time TIMESTAMP NOT NULL,
cksum BINARY(64) NOT NULL,
nbdiff INTEGER NOT NULL DEFAULT 0,
FOREIGN KEY(id_exercice) REFERENCES exercices(id_exercice),
FOREIGN KEY(id_team) REFERENCES teams(id_team)