Merge remote-tracking branch 'upstream/pull/4648'

This commit is contained in:
Tom Hughes 2024-04-07 12:14:08 +01:00
commit 031093d771
3 changed files with 17 additions and 1 deletions

View file

@ -15,6 +15,7 @@
# #
# Indexes # Indexes
# #
# index_user_blocks_on_creator_id_and_id (creator_id,id)
# index_user_blocks_on_user_id (user_id) # index_user_blocks_on_user_id (user_id)
# #
# Foreign Keys # Foreign Keys

View file

@ -0,0 +1,7 @@
class AddCreatorIndexToUserBlocks < ActiveRecord::Migration[7.1]
disable_ddl_transaction!
def change
add_index :user_blocks, [:creator_id, :id], :algorithm => :concurrently
end
end

View file

@ -2728,6 +2728,13 @@ CREATE INDEX index_reports_on_issue_id ON public.reports USING btree (issue_id);
CREATE INDEX index_reports_on_user_id ON public.reports USING btree (user_id); CREATE INDEX index_reports_on_user_id ON public.reports USING btree (user_id);
--
-- Name: index_user_blocks_on_creator_id_and_id; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX index_user_blocks_on_creator_id_and_id ON public.user_blocks USING btree (creator_id, id);
-- --
-- Name: index_user_blocks_on_user_id; Type: INDEX; Schema: public; Owner: - -- Name: index_user_blocks_on_user_id; Type: INDEX; Schema: public; Owner: -
-- --
@ -3512,6 +3519,7 @@ INSERT INTO "schema_migrations" (version) VALUES
('23'), ('23'),
('22'), ('22'),
('21'), ('21'),
('20240405083825'),
('20240307181018'), ('20240307181018'),
('20240307180830'), ('20240307180830'),
('20240228205723'), ('20240228205723'),