db: Add cksum_shown field to files in order to store second checksum in case of gziped content

This commit is contained in:
nemunaire 2022-10-31 18:29:41 +01:00
commit 6b7ed273b7
5 changed files with 40 additions and 25 deletions

View file

@ -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;