diff --git a/mod/hotpot/db/postgres7.sql b/mod/hotpot/db/postgres7.sql index b8d345596f6..094ce96e3ab 100644 --- a/mod/hotpot/db/postgres7.sql +++ b/mod/hotpot/db/postgres7.sql @@ -69,6 +69,7 @@ CREATE TABLE prefix_hotpot_questions ( ); COMMENT ON TABLE prefix_hotpot_questions IS 'details about questions in Hot Potatatoes quiz attempts'; CREATE INDEX prefix_hotpot_questions_hotpot_idx ON prefix_hotpot_questions (hotpot); +CREATE INDEX prefix_hotpot_questions_name_idx ON prefix_hotpot_questions (SUBSTR(name,20)); # # Table structure for table `hotpot_responses` # @@ -96,3 +97,4 @@ CREATE TABLE prefix_hotpot_strings ( string TEXT NOT NULL ); COMMENT ON TABLE prefix_hotpot_strings IS 'strings used in Hot Potatatoes questions and responses'; +CREATE INDEX prefix_hotpot_strings_string_idx ON prefix_hotpot_strings (SUBSTR(string,20));