You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exclude these businesses from reloading (these businesses has all the previous filings). These businesses are completely migrated
-- Query in lear db
select b.identifier, f.*
from public.filings f
join businesses b on b.id = f.business_id
where
filing_type='alteration'
and meta_data->'alteration'->>'fromLegalType' in ('BC', 'ULC', 'CC', 'C', 'CUL', 'CCC')
and meta_data->'alteration'->>'toLegalType' in ('BEN', 'CBEN')
and b.id not in (
select b.id from public.filings f
join businesses b on b.id=f.business_id
where
filing_type='lear_epoch'
and b.legal_type in ('BEN','BC', 'ULC', 'CC', 'CBEN','C', 'CUL', 'CCC')
and filing_json->'filing'->'business'->>'legalType' <> 'BEN')
Activity
vysakh-menon-aot commentedon May 9, 2025
These are already handled in https://app.zenhub.com/workspaces/entities---lorrie-65af11a89e89f5043c2911f6/issues/gh/bcgov/entity/26424