Merged from MOODLE_15_STABLE: (ish, version numbers different): Add an index where we really need it - block_instance.pagetype

This commit is contained in:
mjollnir_
2005-09-02 05:00:59 +00:00
parent f64376bfc8
commit c69dbe691e
5 changed files with 18 additions and 4 deletions
+3
View File
@@ -24,6 +24,7 @@ CREATE TABLE prefix_block_instance (
configdata text not null default ''
) ;
CREATE INDEX prefix_block_instance_pageid_idx ON prefix_block_instance (pageid);
CREATE INDEX prefix_block_instance_pagetype_idx ON prefix_block_instance (pagetype);
CREATE TABLE prefix_block_pinned (
id SERIAL8 PRIMARY KEY,
@@ -35,4 +36,6 @@ CREATE TABLE prefix_block_pinned (
configdata text NOT NULL default 0
) ;
CREATE INDEX prefix_block_pinned_pagetype_idx ON prefix_block_pinned (pagetype);
# --------------------------------------------------------