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/poll/poll.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/poll/poll.install')
-rw-r--r-- | modules/poll/poll.install | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/poll/poll.install b/modules/poll/poll.install index 5998743dc..4859747c1 100644 --- a/modules/poll/poll.install +++ b/modules/poll/poll.install @@ -120,10 +120,10 @@ function poll_schema() { 'description' => t('The IP address this vote is from unless the voter was logged in.'), ), ), + 'primary key' => array('nid', 'uid', 'hostname'), 'indexes' => array( 'hostname' => array('hostname'), - 'nid' => array('nid'), - 'uid' => array('uid') + 'uid' => array('uid'), ), ); |