From 0a638b053490b2a1c7cb87d20f941454781933bb Mon Sep 17 00:00:00 2001 From: Mike Lang Date: Thu, 20 Feb 2025 00:01:45 +1100 Subject: [PATCH] postgres: fix wrong constraint on thumbnail_location values --- postgres/schema.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/postgres/schema.sql b/postgres/schema.sql index 1b768c1..5e68339 100644 --- a/postgres/schema.sql +++ b/postgres/schema.sql @@ -94,8 +94,8 @@ CREATE TABLE events ( OR thumbnail_crop IS NULL ), -- left, upper, right, and lower pixel coordinates to crop the selected frame thumbnail_location INTEGER[] CHECK ( - cardinality(thumbnail_crop) = 4 - OR thumbnail_crop IS NULL + cardinality(thumbnail_location) = 4 + OR thumbnail_location IS NULL ), -- left, top, right, bottom pixel coordinates to position the cropped frame state event_state NOT NULL DEFAULT 'UNEDITED',