X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/efc61f13159f2cf4e2ba542bac40ca84a57480da..746bfd0a4838268eaf745e85e0e27b5acf9cf64a:/db/structure.sql?ds=inline 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'),