new-site/api/migrations/041_fcc_rmd_removal_tracking.sql
justin f8cd37ac8c Initial commit — Performance West telecom compliance platform
Includes: API (Express/TypeScript), Astro site, Python workers,
document generators, FCC compliance tools, Canada CRTC formation,
Ansible infrastructure, and deployment scripts.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-27 06:54:22 -05:00

9 lines
459 B
SQL

-- 041: Track RMD removal status directly on fcc_rmd records
-- When a provider disappears from the RMD CSV, we mark them as removed
-- rather than deleting the record. This way we can still look them up
-- by FRN and tell them their RMD filing is missing.
ALTER TABLE fcc_rmd
ADD COLUMN IF NOT EXISTS removed_from_rmd BOOLEAN DEFAULT FALSE,
ADD COLUMN IF NOT EXISTS removed_at TIMESTAMPTZ,
ADD COLUMN IF NOT EXISTS last_seen_in_csv TIMESTAMPTZ;