db: Add cksum_shown field to files in order to store second checksum in case of gziped content
This commit is contained in:
parent
91b2daea2e
commit
6b7ed273b7
5 changed files with 40 additions and 25 deletions
|
|
@ -168,6 +168,7 @@ CREATE TABLE IF NOT EXISTS exercice_files(
|
|||
id_exercice INTEGER NOT NULL,
|
||||
name VARCHAR(255) NOT NULL,
|
||||
cksum BINARY(64) NOT NULL,
|
||||
cksum_shown BINARY(64),
|
||||
size BIGINT UNSIGNED NOT NULL,
|
||||
FOREIGN KEY(id_exercice) REFERENCES exercices(id_exercice)
|
||||
) DEFAULT CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci;
|
||||
|
|
|
|||
Reference in a new issue