Add fields for tests
This commit is contained in:
parent
ec71073cb6
commit
7340e10a7a
2 changed files with 11 additions and 8 deletions
2
db.go
2
db.go
|
@ -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)
|
||||
|
|
Reference in a new issue