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/upload | |
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/upload')
-rw-r--r-- | modules/upload/upload.install | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/upload/upload.install b/modules/upload/upload.install index 08638a7c2..2a5fa213f 100644 --- a/modules/upload/upload.install +++ b/modules/upload/upload.install @@ -68,8 +68,11 @@ function upload_schema() { 'description' => t('Weight of this upload in relation to other uploads in this node.'), ), ), - 'primary key' => array('fid', 'vid'), - 'indexes' => array('vid' => array('vid'), 'nid' => array('nid')), + 'primary key' => array('vid', 'fid'), + 'indexes' => array( + 'fid' => array('fid'), + 'nid' => array('nid'), + ), ); return $schema; |