Allow store files bigger than 4GB

This commit is contained in:
nemunaire 2020-01-20 15:58:30 +01:00
parent c9cacb80a7
commit f3fdb36929

View File

@ -149,7 +149,7 @@ CREATE TABLE IF NOT EXISTS exercice_files(
id_exercice INTEGER NOT NULL,
name VARCHAR(255) NOT NULL,
cksum BINARY(64) NOT NULL,
size INTEGER UNSIGNED NOT NULL,
size BIGINT UNSIGNED NOT NULL,
FOREIGN KEY(id_exercice) REFERENCES exercices(id_exercice)
) DEFAULT CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci;
`); err != nil {