Skip to content

Commit

Permalink
Merge pull request #1056 from PlanoramaEvents/gail
Browse files Browse the repository at this point in the history
PLAN-911 UI people matching
  • Loading branch information
balen authored Jun 6, 2024
2 parents 89a90dd + f26b255 commit 29e2772
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions db/structure.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1658,7 +1658,7 @@ CREATE VIEW public.registration_sync_matches AS
rsd.id AS rid,
'name'::text AS mtype
FROM (public.people p
JOIN public.registration_sync_data rsd ON ((((rsd.name)::text ~~* (p.name)::text) OR ((rsd.preferred_name)::text ~~* (p.name)::text) OR ((rsd.badge_name)::text ~~* (p.name)::text) OR ((rsd.name)::text ~~* (p.pseudonym)::text) OR ((rsd.preferred_name)::text ~~* (p.pseudonym)::text) OR ((rsd.badge_name)::text ~~* (p.pseudonym)::text))))
JOIN public.registration_sync_data rsd ON (((rsd.name)::text ~~* (p.name)::text)))
UNION
SELECT NULL::character varying AS name,
e.email,
Expand All @@ -1667,8 +1667,7 @@ UNION
rsd.id AS rid,
'email'::text AS mtype
FROM (public.email_addresses e
JOIN public.registration_sync_data rsd ON ((((rsd.email)::text ~~* (e.email)::text) OR ((rsd.alternative_email)::text ~~* (e.email)::text))))
WHERE (e.isdefault = true);
JOIN public.registration_sync_data rsd ON (((rsd.email)::text ~~* (e.email)::text)));


--
Expand All @@ -1680,9 +1679,6 @@ CREATE VIEW public.registration_map_counts AS
rsm.pid,
count(rsm.pid) AS sub_count
FROM public.registration_sync_matches rsm
WHERE ((NOT (rsm.pid IN ( SELECT dismissed_reg_sync_matches.person_id
FROM public.dismissed_reg_sync_matches))) AND (NOT ((rsm.reg_id)::text IN ( SELECT dismissed_reg_sync_matches.reg_id
FROM public.dismissed_reg_sync_matches))))
GROUP BY rsm.reg_id, rsm.pid;


Expand Down Expand Up @@ -2985,6 +2981,13 @@ CREATE INDEX fk_configurations_parameters_idx ON public.configurations USING btr
CREATE UNIQUE INDEX fl_configurations_unique_index ON public.configurations USING btree (parameter);


--
-- Name: idx_people_reg_id; Type: INDEX; Schema: public; Owner: -
--

CREATE UNIQUE INDEX idx_people_reg_id ON public.people USING btree (reg_id);


--
-- Name: idx_person_reg_id; Type: INDEX; Schema: public; Owner: -
--
Expand Down Expand Up @@ -3942,6 +3945,7 @@ INSERT INTO "schema_migrations" (version) VALUES
('20240521193119'),
('20240522174506'),
('20240522190737'),
('20240602172220');
('20240602172220'),
('20240606115218');


0 comments on commit 29e2772

Please sign in to comment.