db: Add a published attribute, filled by challenge.txt
This commit is contained in:
parent
6b7ed273b7
commit
a28f108b8a
7 changed files with 75 additions and 19 deletions
|
|
@ -170,6 +170,7 @@ CREATE TABLE IF NOT EXISTS exercice_files(
|
|||
cksum BINARY(64) NOT NULL,
|
||||
cksum_shown BINARY(64),
|
||||
size BIGINT UNSIGNED NOT NULL,
|
||||
published BOOLEAN NOT NULL DEFAULT 1,
|
||||
FOREIGN KEY(id_exercice) REFERENCES exercices(id_exercice)
|
||||
) DEFAULT CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci;
|
||||
`); err != nil {
|
||||
|
|
|
|||
Reference in a new issue