Files
Sauci/apps/supabase/migrations/20260102000001_add_feature_interests_to_realtime.sql
T
Jamie BruntonandClaude Code f7aa6ed8dd Add feature opt-ins, dashboard view, and tests
Introduce feature_interests schema + realtime publication and surface opt-in trends in the admin dashboard. Add Jest test infrastructure/coverage for the mobile app and update push-all to run mobile checks before pushing.

Co-authored-by: Claude Code <claude@anthropic.com>
2026-01-02 11:36:51 +00:00

15 lines
341 B
SQL

-- Enable realtime updates for feature interest opt-ins
DO $$
BEGIN
IF NOT EXISTS (
SELECT 1
FROM pg_publication_tables
WHERE pubname = 'supabase_realtime'
AND schemaname = 'public'
AND tablename = 'feature_interests'
) THEN
ALTER PUBLICATION supabase_realtime ADD TABLE feature_interests;
END IF;
END $$;