ALTER TABLE public.units ADD COLUMN IF NOT EXISTS buildium_unit_id text;
ALTER TABLE public.units ADD COLUMN IF NOT EXISTS buildium_account_number text;

CREATE UNIQUE INDEX IF NOT EXISTS units_buildium_unit_id_idx ON public.units (buildium_unit_id) WHERE buildium_unit_id IS NOT NULL;