snapshot of https://github.com/marmelab/atomic-crm.git (main, 2026-09-18; blobs > 131072B omitted)
Some checks failed
✅ Check / 🔬 ESLint (push) Failing after 21s
✅ Check / 🏷️ Typecheck (push) Failing after 11s
✅ Check / 🔎 Test (push) Failing after 11s
✅ Check / e2e-test (push) Failing after 11s
✅ Check / 🔨 Build (push) Failing after 11s
🚀 Deploy / 🚀 Deploy (doc) (push) Failing after 12s
🚀 Deploy / 🚀 Deploy (demo) (push) Failing after 12s
🚀 Deploy / 🚀 Deploy (supabase) (push) Failing after 18s
Some checks failed
✅ Check / 🔬 ESLint (push) Failing after 21s
✅ Check / 🏷️ Typecheck (push) Failing after 11s
✅ Check / 🔎 Test (push) Failing after 11s
✅ Check / e2e-test (push) Failing after 11s
✅ Check / 🔨 Build (push) Failing after 11s
🚀 Deploy / 🚀 Deploy (doc) (push) Failing after 12s
🚀 Deploy / 🚀 Deploy (demo) (push) Failing after 12s
🚀 Deploy / 🚀 Deploy (supabase) (push) Failing after 18s
This commit is contained in:
18
supabase/migrations/20260307120000_nb_tasks_pending_only.sql
Normal file
18
supabase/migrations/20260307120000_nb_tasks_pending_only.sql
Normal file
@@ -0,0 +1,18 @@
|
||||
drop view if exists contacts_summary;
|
||||
|
||||
create view contacts_summary
|
||||
as
|
||||
select
|
||||
co.*,
|
||||
jsonb_path_query_array(co.email_jsonb, '$[*].email')::text as email_fts,
|
||||
jsonb_path_query_array(co.phone_jsonb, '$[*].number')::text as phone_fts,
|
||||
c.name as company_name,
|
||||
count(distinct t.id) filter (where t.done_date is null) as nb_tasks
|
||||
from
|
||||
contacts co
|
||||
left join
|
||||
tasks t on co.id = t.contact_id
|
||||
left join
|
||||
companies c on co.company_id = c.id
|
||||
group by
|
||||
co.id, c.name;
|
||||
Reference in New Issue
Block a user