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/user | |
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/user')
-rw-r--r-- | modules/user/user.install | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/user/user.install b/modules/user/user.install index 3522cc91f..8bdcfc963 100644 --- a/modules/user/user.install +++ b/modules/user/user.install @@ -254,7 +254,10 @@ function user_schema() { 'access' => array('access'), 'created' => array('created') ), - 'unique keys' => array('name' => array('name')), + 'unique keys' => array( + 'name' => array('name'), + 'mail' => array('mail'), + ), 'primary key' => array('uid'), ); @@ -277,6 +280,9 @@ function user_schema() { ), ), 'primary key' => array('uid', 'rid'), + 'indexes' => array( + 'rid' => array('rid'), + ), ); return $schema; |