diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-12-18 12:59:22 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-12-18 12:59:22 +0000 |
commit | c8b1ddf26a299016c433c2901e519942d693430d (patch) | |
tree | 4ca56e42ce19ad706c98237248f60bed105aeb2f /modules/block/block.install | |
parent | 02539ac3f830101345cf5c715b0001aa1eb5a9c0 (diff) | |
download | brdo-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.install | 11 |
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( |