mirror of
https://github.com/renee-png/acmcc.git
synced 2026-06-21 09:50:01 +00:00
Add ACMCC app source, Supabase backend, and project config
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
|
||||
-- Drop the unique constraint on (association_id, charge_type) to allow multiple mappings per charge type
|
||||
ALTER TABLE public.buildium_gl_mappings DROP CONSTRAINT IF EXISTS buildium_gl_mappings_association_id_charge_type_key;
|
||||
|
||||
-- Add amount threshold columns
|
||||
ALTER TABLE public.buildium_gl_mappings
|
||||
ADD COLUMN IF NOT EXISTS amount_min numeric DEFAULT NULL,
|
||||
ADD COLUMN IF NOT EXISTS amount_max numeric DEFAULT NULL;
|
||||
|
||||
-- Add a unique constraint that includes amount thresholds
|
||||
ALTER TABLE public.buildium_gl_mappings
|
||||
ADD CONSTRAINT buildium_gl_mappings_assoc_type_amount_unique
|
||||
UNIQUE (association_id, charge_type, amount_min, amount_max);
|
||||
Reference in New Issue
Block a user