summaryrefslogtreecommitdiff
path: root/modules/poll
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/poll
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/poll')
-rw-r--r--modules/poll/poll.install4
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'),
),
);