From 897a60d8df3bb5e4fa629c3f48379b37b76f16dc Mon Sep 17 00:00:00 2001 From: Jared Pereira Date: Wed, 21 May 2025 14:28:23 -0400 Subject: [PATCH] add migration to domain tables --- .../20250521182744_modify_custom_domain_relations.sql | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 supabase/migrations/20250521182744_modify_custom_domain_relations.sql diff --git a/supabase/migrations/20250521182744_modify_custom_domain_relations.sql b/supabase/migrations/20250521182744_modify_custom_domain_relations.sql new file mode 100644 index 00000000..26dba65e --- /dev/null +++ b/supabase/migrations/20250521182744_modify_custom_domain_relations.sql @@ -0,0 +1,4 @@ +alter table "public"."custom_domains" alter column "identity" drop not null; +alter table "public"."publication_domains" add column "identity" text not null; +alter table "public"."publication_domains" add constraint "publication_domains_identity_fkey" FOREIGN KEY (identity) REFERENCES identities(atp_did) ON UPDATE CASCADE ON DELETE CASCADE not valid; +alter table "public"."publication_domains" validate constraint "publication_domains_identity_fkey"; -- 2.51.2