Fix most glaring bugs and vulnerabilities

This commit is contained in:
Luka Romih
2023-05-08 23:25:25 +02:00
parent 9867875ef2
commit d0e53fee3b
144 changed files with 2231 additions and 2981 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ CREATE TABLE extraction (
time_finished TIMESTAMPTZ,
CHECK (
CASE
WHEN oss_params IS NULL AND status = 'finished' THEN corpus_id IS NOT NULL
WHEN oss_params IS NULL THEN TRUE
ELSE corpus_id IS NULL
END
)