Merge pull request #4485 from tomhughes/drop-lower-index
Drop lowercase index on display names
This commit is contained in:
commit
c9a86866bb
3 changed files with 6 additions and 8 deletions
|
@ -37,7 +37,6 @@
|
||||||
# users_auth_idx (auth_provider,auth_uid) UNIQUE
|
# users_auth_idx (auth_provider,auth_uid) UNIQUE
|
||||||
# users_display_name_canonical_idx (lower(NORMALIZE(display_name, NFKC)))
|
# users_display_name_canonical_idx (lower(NORMALIZE(display_name, NFKC)))
|
||||||
# users_display_name_idx (display_name) UNIQUE
|
# users_display_name_idx (display_name) UNIQUE
|
||||||
# users_display_name_lower_idx (lower((display_name)::text))
|
|
||||||
# users_email_idx (email) UNIQUE
|
# users_email_idx (email) UNIQUE
|
||||||
# users_email_lower_idx (lower((email)::text))
|
# users_email_lower_idx (lower((email)::text))
|
||||||
# users_home_idx (home_tile)
|
# users_home_idx (home_tile)
|
||||||
|
|
5
db/migrate/20240117185445_drop_lowercase_user_index.rb
Normal file
5
db/migrate/20240117185445_drop_lowercase_user_index.rb
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
class DropLowercaseUserIndex < ActiveRecord::Migration[7.1]
|
||||||
|
def change
|
||||||
|
remove_index :users, "LOWER(display_name)", :name => "users_display_name_lower_idx"
|
||||||
|
end
|
||||||
|
end
|
|
@ -2936,13 +2936,6 @@ CREATE INDEX users_display_name_canonical_idx ON public.users USING btree (lower
|
||||||
CREATE UNIQUE INDEX users_display_name_idx ON public.users USING btree (display_name);
|
CREATE UNIQUE INDEX users_display_name_idx ON public.users USING btree (display_name);
|
||||||
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Name: users_display_name_lower_idx; Type: INDEX; Schema: public; Owner: -
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE INDEX users_display_name_lower_idx ON public.users USING btree (lower((display_name)::text));
|
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Name: users_email_idx; Type: INDEX; Schema: public; Owner: -
|
-- Name: users_email_idx; Type: INDEX; Schema: public; Owner: -
|
||||||
--
|
--
|
||||||
|
@ -3588,6 +3581,7 @@ INSERT INTO "schema_migrations" (version) VALUES
|
||||||
('23'),
|
('23'),
|
||||||
('22'),
|
('22'),
|
||||||
('21'),
|
('21'),
|
||||||
|
('20240117185445'),
|
||||||
('20231213182102'),
|
('20231213182102'),
|
||||||
('20231206141457'),
|
('20231206141457'),
|
||||||
('20231117170422'),
|
('20231117170422'),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue