From c6b33790f018a5eea4de615181d7f01309e79c3f Mon Sep 17 00:00:00 2001 From: rogacky11 Date: Mon, 29 Apr 2024 13:52:54 +0200 Subject: [PATCH] RSN-23: changed unique index name --- Database/init-constraints.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Database/init-constraints.sql b/Database/init-constraints.sql index 03be3d2a..6dbded68 100644 --- a/Database/init-constraints.sql +++ b/Database/init-constraints.sql @@ -64,6 +64,6 @@ CHECK ( (name IN ('Completed', 'In progress', 'Waiting for approval') AND object_type_id = 1) ); -CREATE UNIQUE INDEX unique_image_per_object_type_and_object_id +CREATE UNIQUE INDEX unique_image_for_user ON common.image ("object_type_id", "object_id") WHERE ("object_type_id" = 2); \ No newline at end of file