From 9cee1700fb31bb7ab60516473dd9a638d7eb8cb2 Mon Sep 17 00:00:00 2001 From: SneedBot Date: Thu, 24 Oct 2024 00:00:17 +0000 Subject: [PATCH] sneed --- schema.sql | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/schema.sql b/schema.sql index fd34dc87d..869c6a4e0 100644 --- a/schema.sql +++ b/schema.sql @@ -1747,6 +1747,14 @@ ALTER TABLE ONLY public.media_usages ADD CONSTRAINT media_usages_pkey PRIMARY KEY (id); +-- +-- Name: media_usages media_usages_unique; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.media_usages + ADD CONSTRAINT media_usages_unique UNIQUE NULLS NOT DISTINCT (filename, post_id, comment_id); + + -- -- Name: modactions modactions_pkey; Type: CONSTRAINT; Schema: public; Owner: - --