Jobs done in Supabase
A few admin jobs have no button yet. Run them in the Supabase SQL editor for the trellis project, with the real names swapped in.
Give someone sign-in access. Their first sign-in links them to the person with that email. Core Group Leaders sign in with their Planning Center email and don’t need this.
update public.people set email = 'name@example.com' where full_name = 'Full Name';
Make someone a discipler for one Core Group Leader.
insert into public.cgl_disciplers (discipleship_id, person_id)
select d.id, h.id from public.discipleships d join public.people c on c.id = d.disciple_id, public.people h
where d.kind = 'resource' and c.full_name = 'CGL Name' and h.full_name = 'Discipler Name';
Link a Core Group Leader to Planning Center when their name is different there. The id is the number in their Planning Center profile’s web address.
update public.people set pco_person_id = '<Planning Center id>' where full_name = 'Full Name';
Before a big import or SQL by hand, run Actions → Database backup → Run workflow in GitHub for a fresh backup.