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:
20
supabase/migrations/20240807082449_remove-aquisition.sql
Normal file
20
supabase/migrations/20240807082449_remove-aquisition.sql
Normal file
@@ -0,0 +1,20 @@
|
||||
-- this will drop the `contacts_summary` view as well
|
||||
ALTER TABLE "public"."contacts"
|
||||
DROP COLUMN acquisition CASCADE;
|
||||
|
||||
-- We need to recreate the view with the new schema
|
||||
|
||||
create view "public"."contacts_summary"
|
||||
as
|
||||
select
|
||||
co.*,
|
||||
c.name as company_name,
|
||||
count(distinct t.id) as nb_tasks
|
||||
from
|
||||
"public"."contacts" co
|
||||
left join
|
||||
"public"."tasks" t on co.id = t.contact_id
|
||||
left join
|
||||
"public"."companies" c on co.company_id = c.id
|
||||
group by
|
||||
co.id, c.name;
|
||||
Reference in New Issue
Block a user