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>
This commit is contained in:
commit
f8cd37ac8c
1823 changed files with 145167 additions and 0 deletions
17
api/migrations/024_crtc_trade_name.sql
Normal file
17
api/migrations/024_crtc_trade_name.sql
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
-- 024_crtc_trade_name.sql
|
||||
-- Add trade name support to canada_crtc_orders.
|
||||
|
||||
BEGIN;
|
||||
|
||||
-- Add trade name columns
|
||||
ALTER TABLE canada_crtc_orders
|
||||
ADD COLUMN IF NOT EXISTS trade_name TEXT,
|
||||
ADD COLUMN IF NOT EXISTS add_trade_name BOOLEAN DEFAULT FALSE;
|
||||
|
||||
-- Expand company_type CHECK to include numbered_tradename
|
||||
-- Drop old constraint and recreate (PG doesn't support ALTER CONSTRAINT)
|
||||
ALTER TABLE canada_crtc_orders DROP CONSTRAINT IF EXISTS canada_crtc_orders_company_type_check;
|
||||
ALTER TABLE canada_crtc_orders ADD CONSTRAINT canada_crtc_orders_company_type_check
|
||||
CHECK (company_type IN ('numbered', 'numbered_tradename', 'named'));
|
||||
|
||||
COMMIT;
|
||||
Loading…
Add table
Add a link
Reference in a new issue