From ec3e01e9eb609dba955e510bdb79a38b6fa637d9 Mon Sep 17 00:00:00 2001 From: Kyle Simpson Date: Thu, 28 Dec 2023 22:09:44 +0000 Subject: [PATCH] Accidentally forgot an 'IF NOT EXISTS' --- schema/crdb/22.0.0/up06.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schema/crdb/22.0.0/up06.sql b/schema/crdb/22.0.0/up06.sql index a224588a37..ca19081e37 100644 --- a/schema/crdb/22.0.0/up06.sql +++ b/schema/crdb/22.0.0/up06.sql @@ -1,4 +1,4 @@ ALTER TABLE omicron.public.external_ip -ADD CONSTRAINT detached_null_parent_id CHECK ( +ADD CONSTRAINT IF NOT EXISTS detached_null_parent_id CHECK ( (state = 'detached') OR (parent_id IS NOT NULL) );