wacrm/supabase
Arnas Donauskas 450233de89
feat(contacts): add filter_contacts_by_tags RPC migration
Server-side tag filter used by the Contacts page tag filter: join +
DISTINCT (OR across tags) + windowed total count + LIMIT/OFFSET in one
query, so a tag covering many contacts can't silently truncate results
or skew the count. SECURITY INVOKER, so existing account RLS applies.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-22 15:50:40 +03:00
..
migrations feat(contacts): add filter_contacts_by_tags RPC migration 2026-06-22 15:50:40 +03:00