From b88627183d5b3cdd75814c73ad299b729d7c22cb Mon Sep 17 00:00:00 2001 From: Mike Lang Date: Tue, 12 Nov 2024 01:25:03 +1100 Subject: [PATCH] Fix modifying manually-uploaded links --- postgres/schema.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postgres/schema.sql b/postgres/schema.sql index f25ae0f..1b768c1 100644 --- a/postgres/schema.sql +++ b/postgres/schema.sql @@ -99,7 +99,7 @@ CREATE TABLE events ( ), -- left, top, right, bottom pixel coordinates to position the cropped frame state event_state NOT NULL DEFAULT 'UNEDITED', - uploader TEXT CHECK (state IN ('UNEDITED', 'EDITED', 'DONE') OR uploader IS NOT NULL), + uploader TEXT CHECK (state IN ('UNEDITED', 'EDITED', 'DONE', 'MODIFIED') OR uploader IS NOT NULL), error TEXT, video_id TEXT, video_link TEXT CHECK ((NOT (state IN ('DONE', 'MODIFIED'))) OR video_link IS NOT NULL),