Repository: no last_check at creation

This commit is contained in:
nemunaire 2022-09-04 23:45:48 +02:00
parent 931d02854a
commit 3285d5e896
2 changed files with 2 additions and 2 deletions

2
db.go
View file

@ -234,7 +234,7 @@ CREATE TABLE IF NOT EXISTS user_work_repositories(
id_user INTEGER NOT NULL,
id_work INTEGER NOT NULL,
uri VARCHAR(255) NOT NULL,
last_check TIMESTAMP,
last_check TIMESTAMP NULL DEFAULT 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)