summaryrefslogtreecommitdiff
path: root/modules/block/block.install
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-12-18 12:59:22 +0000
committerDries Buytaert <dries@buytaert.net>2007-12-18 12:59:22 +0000
commitc8b1ddf26a299016c433c2901e519942d693430d (patch)
tree4ca56e42ce19ad706c98237248f60bed105aeb2f /modules/block/block.install
parent02539ac3f830101345cf5c715b0001aa1eb5a9c0 (diff)
downloadbrdo-c8b1ddf26a299016c433c2901e519942d693430d.tar.gz
brdo-c8b1ddf26a299016c433c2901e519942d693430d.tar.bz2
- Patch #164532 by catch, pwolanin, David Strauss, et al.: improve table indicies for common queries.
Diffstat (limited to 'modules/block/block.install')
-rw-r--r--modules/block/block.install11
1 files changed, 10 insertions, 1 deletions
diff --git a/modules/block/block.install b/modules/block/block.install
index e4fc5e6dc..737f32dd4 100644
--- a/modules/block/block.install
+++ b/modules/block/block.install
@@ -29,7 +29,7 @@ function block_schema() {
),
'theme' => array(
'type' => 'varchar',
- 'length' => 255,
+ 'length' => 64,
'not null' => TRUE,
'default' => '',
'description' => t('The theme under which the block settings apply.'),
@@ -97,6 +97,12 @@ function block_schema() {
),
),
'primary key' => array('bid'),
+ 'unique keys' => array(
+ 'tmd' => array('theme', 'module', 'delta'),
+ ),
+ 'indexes' => array(
+ 'list' => array('theme', 'status', 'region', 'weight', 'module'),
+ ),
);
$schema['blocks_roles'] = array(
@@ -126,6 +132,9 @@ function block_schema() {
'delta',
'rid'
),
+ 'indexes' => array(
+ 'rid' => array('rid'),
+ ),
);
$schema['boxes'] = array(