qa: Add todo list on home page
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
nemunaire 2020-09-08 13:30:28 +02:00
commit 42d594ccac
5 changed files with 159 additions and 1 deletions

View file

@ -446,6 +446,17 @@ CREATE TABLE IF NOT EXISTS qa_comments(
FOREIGN KEY(id_qa) REFERENCES exercices_qa(id_qa),
FOREIGN KEY(id_team) REFERENCES teams(id_team)
) DEFAULT CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci;
`); err != nil {
return err
}
if _, err := db.Exec(`
CREATE TABLE IF NOT EXISTS teams_qa_todo(
id_todo INTEGER NOT NULL PRIMARY KEY AUTO_INCREMENT,
id_team INTEGER NOT NULL,
id_exercice INTEGER NOT NULL,
FOREIGN KEY(id_exercice) REFERENCES exercices(id_exercice),
FOREIGN KEY(id_team) REFERENCES teams(id_team)
) DEFAULT CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci;
`); err != nil {
return err
}