Add issue field for exercice, to be able to communicate about problem with exercice

This commit is contained in:
nemunaire 2018-11-21 02:20:37 +01:00 committed by Pierre-Olivier Mercier
parent 0654033721
commit 44d335bc9f
8 changed files with 43 additions and 17 deletions

View file

@ -119,6 +119,8 @@ CREATE TABLE IF NOT EXISTS exercices(
path VARCHAR(191) NOT NULL UNIQUE,
statement TEXT NOT NULL,
overview TEXT NOT NULL,
issue TEXT NOT NULL,
issue_kind ENUM('primary', 'secondary', 'success', 'danger', 'warning', 'info', 'light', 'dark') NOT NULL DEFAULT 'info',
depend INTEGER,
gain INTEGER NOT NULL,
coefficient_cur FLOAT NOT NULL DEFAULT 1.0,