diff --git a/supabase/migrations/20251030211410_notif_relate_to_atp_did_not_id.sql b/supabase/migrations/20251030211410_notif_relate_to_atp_did_not_id.sql new file mode 100644 index 00000000..1a03db7e --- /dev/null +++ b/supabase/migrations/20251030211410_notif_relate_to_atp_did_not_id.sql @@ -0,0 +1,7 @@ +alter table "public"."notif_comments" drop constraint "notif_comments_identity_fkey"; + +alter table "public"."notif_comments" alter column "identity" set data type text using "identity"::text; + +alter table "public"."notif_comments" add constraint "notif_comments_identity_fkey" FOREIGN KEY (identity) REFERENCES identities(atp_did) ON UPDATE CASCADE ON DELETE CASCADE not valid; + +alter table "public"."notif_comments" validate constraint "notif_comments_identity_fkey";