X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/10d65cc8571d38bb6af6d9022edb98a294ad2f2d..238f750b000ee145ebffca94567c042396809e20:/db/structure.sql diff --git a/db/structure.sql b/db/structure.sql index 0563417cd..4998bc694 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -2923,17 +2923,17 @@ CREATE UNIQUE INDEX users_auth_idx ON public.users USING btree (auth_provider, a -- --- Name: users_display_name_idx; Type: INDEX; Schema: public; Owner: - +-- Name: users_display_name_canonical_idx; Type: INDEX; Schema: public; Owner: - -- -CREATE UNIQUE INDEX users_display_name_idx ON public.users USING btree (display_name); +CREATE INDEX users_display_name_canonical_idx ON public.users USING btree (lower(NORMALIZE(display_name, NFKC))); -- --- Name: users_display_name_lower_idx; Type: INDEX; Schema: public; Owner: - +-- Name: users_display_name_idx; Type: INDEX; Schema: public; Owner: - -- -CREATE INDEX users_display_name_lower_idx ON public.users USING btree (lower((display_name)::text)); +CREATE UNIQUE INDEX users_display_name_idx ON public.users USING btree (display_name); -- @@ -3581,6 +3581,8 @@ INSERT INTO "schema_migrations" (version) VALUES ('23'), ('22'), ('21'), +('20240117185445'), +('20231213182102'), ('20231206141457'), ('20231117170422'), ('20231101222146'),