nordabiz/database/migrations/072_social_post_is_live.sql
Maciej Pienczyn f26341d8cc
Some checks are pending
NordaBiz Tests / Unit & Integration Tests (push) Waiting to run
NordaBiz Tests / E2E Tests (Playwright) (push) Blocked by required conditions
NordaBiz Tests / Smoke Tests (Production) (push) Blocked by required conditions
NordaBiz Tests / Send Failure Notification (push) Blocked by required conditions
feat: add toggle visibility for published Facebook posts (debug ↔ live)
Adds bidirectional visibility control: published posts can be switched
between public (live) and draft (debug/admin-only) mode via Facebook
Graph API. Includes is_live column, status indicator, and toggle buttons.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-19 10:36:14 +01:00

6 lines
272 B
SQL

-- Add is_live column to social_media_posts
-- Tracks whether a published post is publicly visible (true) or debug/draft (false)
ALTER TABLE social_media_posts ADD COLUMN IF NOT EXISTS is_live BOOLEAN DEFAULT FALSE;
GRANT ALL ON TABLE social_media_posts TO nordabiz_app;