mirror of
https://github.com/renee-png/acmcc.git
synced 2026-06-21 01:40:01 +00:00
183fe0a93c
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
9 lines
574 B
SQL
9 lines
574 B
SQL
-- Add 'fined' to violations status check
|
|
ALTER TABLE public.violations DROP CONSTRAINT violations_status_check;
|
|
ALTER TABLE public.violations ADD CONSTRAINT violations_status_check CHECK (status = ANY (ARRAY['open', 'pending', 'resolved', 'escalated', 'closed', 'fined']));
|
|
|
|
-- Create missing associations
|
|
INSERT INTO public.associations (id, name, status) VALUES
|
|
('be7cbde1-3bd6-4728-8a92-a43aa0f39d1d', 'Las Palmos Community Association', 'active'),
|
|
('b07d0163-6897-4908-9dcf-2d8049afaa96', 'Main Street Community Association', 'active')
|
|
ON CONFLICT (id) DO NOTHING; |