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>
16 lines
560 B
PL/PgSQL
16 lines
560 B
PL/PgSQL
-- 036_crtc_ontario.sql
|
|
-- Add Ontario incorporation support to CRTC orders.
|
|
-- Adds province selection column and generalizes BC-specific field name.
|
|
|
|
BEGIN;
|
|
|
|
-- 1. Add incorporation_province column (default BC for existing orders)
|
|
ALTER TABLE canada_crtc_orders
|
|
ADD COLUMN IF NOT EXISTS incorporation_province TEXT DEFAULT 'BC'
|
|
CHECK (incorporation_province IN ('BC', 'ON'));
|
|
|
|
-- 2. Rename bc_incorporation_number → incorporation_number
|
|
ALTER TABLE canada_crtc_orders
|
|
RENAME COLUMN bc_incorporation_number TO incorporation_number;
|
|
|
|
COMMIT;
|