From 46da3eed283b4a7b4f0153db025e7dbecd67b6a5 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Fri, 16 Dec 2022 20:43:49 +0100 Subject: ... --- hosts/surtr/postgresql/default.nix | 1 - 1 file changed, 1 deletion(-) (limited to 'hosts/surtr') diff --git a/hosts/surtr/postgresql/default.nix b/hosts/surtr/postgresql/default.nix index 9cfcc365..891b6ce0 100644 --- a/hosts/surtr/postgresql/default.nix +++ b/hosts/surtr/postgresql/default.nix @@ -228,7 +228,6 @@ in { ALTER TABLE mailbox_mapping DROP CONSTRAINT local_domain_unique; CREATE UNIQUE INDEX local_domain_unique ON mailbox_mapping (local, domain) WHERE extension IS null; - ALTER TABLE mailbox_mapping ADD CONSTRAINT local_domain_unique UNIQUE USING INDEX local_domain_unique; CREATE UNIQUE INDEX local_extension_domain_unique ON mailbox_mapping (local, extension, domain); ALTER TABLE mailbox_mapping ADD CONSTRAINT local_extension_domain_unique UNIQUE USING INDEX local_extension_domain_unique; -- cgit v1.2.3