Add fields for tests

This commit is contained in:
nemunaire 2023-01-01 19:32:32 +01:00
parent ec71073cb6
commit 7340e10a7a
2 changed files with 11 additions and 8 deletions

2
db.go
View file

@ -242,6 +242,8 @@ CREATE TABLE IF NOT EXISTS user_work_repositories(
secret BLOB NOT NULL,
last_check TIMESTAMP NULL DEFAULT NULL,
droneref VARCHAR(255) NOT NULL,
last_tests TIMESTAMP NULL DEFAULT NULL,
testsref VARCHAR(255) NOT NULL,
FOREIGN KEY(id_user) REFERENCES users(id_user),
FOREIGN KEY(id_work) REFERENCES works(id_work),
UNIQUE one_repo_per_work (id_user, id_work)