sojorn/_legacy/supabase/migrations/20260113_post_ttl.sql
2026-02-15 00:33:24 -06:00

12 lines
341 B
SQL

-- Privacy-first TTL support for posts
-- default_post_ttl is in hours; NULL means keep forever.
alter table if exists user_settings
add column if not exists default_post_ttl integer;
alter table if exists posts
add column if not exists expires_at timestamptz;
create index if not exists posts_expires_at_idx
on posts (expires_at);