Skip to content

Commit

Permalink
RSN-23: changed unique index name
Browse files Browse the repository at this point in the history
  • Loading branch information
rogacky11 committed May 7, 2024
1 parent 0640ff0 commit c6b3379
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Database/init-constraints.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit c6b3379

Please sign in to comment.