backend: save the checksum of each try, to be able to detect duplicates after
This commit is contained in:
parent
44d335bc9f
commit
333bb408e1
3 changed files with 15 additions and 5 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Reference in a new issue