From e42fa8c5da1c3e7730c5e1d075745e4e83a6c2f8 Mon Sep 17 00:00:00 2001 From: gbateson Date: Fri, 13 Jan 2006 08:37:10 +0000 Subject: [PATCH] add questions_name_idx and strings_stirng _idx --- mod/hotpot/db/postgres7.sql | 2 ++ 1 file changed, 2 insertions(+) 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));