diff --git a/supabase/migrations/20260424000000_add_scheduled_publish_columns.sql b/supabase/migrations/20260424000000_add_scheduled_publish_columns.sql new file mode 100644 --- /dev/null +++ b/supabase/migrations/20260424000000_add_scheduled_publish_columns.sql @@ -0,0 +1,10 @@ +-- Scheduled posts: store the scheduled publish time + a snapshot of share state +-- captured at scheduling, so the Inngest job can publish without the user's session. + +alter table "public"."leaflets_in_publications" + add column "scheduled_publish_at" timestamptz, + add column "scheduled_publish_data" jsonb; + +alter table "public"."leaflets_to_documents" + add column "scheduled_publish_at" timestamptz, + add column "scheduled_publish_data" jsonb;