X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/a7ba87340d91a6eeef096783b04a9b0a963bfa99..56622201d3012eddb1efba7baf78d8aeffc336b6:/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'),