a tool for shared writing and social publishing
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

add migration

+13
+13
supabase/migrations/20250610025321_add_cascades_to_leaflets_in_publications.sql
··· 1 + alter table "public"."publication_subscriptions" alter column "uri" set not null; 2 + 3 + alter table "public"."leaflets_in_publications" drop constraint "leaflets_in_publications_leaflet_fkey"; 4 + 5 + alter table "public"."leaflets_in_publications" drop constraint "leaflets_in_publications_publication_fkey"; 6 + 7 + alter table "public"."leaflets_in_publications" add constraint "leaflets_in_publications_leaflet_fkey" FOREIGN KEY (leaflet) REFERENCES permission_tokens(id) ON DELETE CASCADE not valid; 8 + 9 + alter table "public"."leaflets_in_publications" validate constraint "leaflets_in_publications_leaflet_fkey"; 10 + 11 + alter table "public"."leaflets_in_publications" add constraint "leaflets_in_publications_publication_fkey" FOREIGN KEY (publication) REFERENCES publications(uri) ON DELETE CASCADE not valid; 12 + 13 + alter table "public"."leaflets_in_publications" validate constraint "leaflets_in_publications_publication_fkey";