From a8c1b0bc624a106f0c49cf863bb40057d3c172ab Mon Sep 17 00:00:00 2001 From: evazion Date: Fri, 19 May 2017 17:07:15 -0500 Subject: [PATCH] structure.sql: add forum topics (is_sticky, updated_at) index. --- db/structure.sql | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/db/structure.sql b/db/structure.sql index b9adfc198..9869c8562 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -6598,6 +6598,13 @@ CREATE INDEX index_forum_topic_visits_on_user_id ON forum_topic_visits USING btr CREATE INDEX index_forum_topics_on_creator_id ON forum_topics USING btree (creator_id); +-- +-- Name: index_forum_topics_on_is_sticky_and_updated_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_forum_topics_on_is_sticky_and_updated_at ON forum_topics USING btree (is_sticky, updated_at); + + -- -- Name: index_forum_topics_on_text_index; Type: INDEX; Schema: public; Owner: - -- @@ -7536,3 +7543,5 @@ INSERT INTO schema_migrations (version) VALUES ('20170428220448'); INSERT INTO schema_migrations (version) VALUES ('20170512221200'); +INSERT INTO schema_migrations (version) VALUES ('20170515235205'); +