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/profile/profile.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/profile/profile.install')
-rw-r--r-- | modules/profile/profile.install | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/profile/profile.install b/modules/profile/profile.install index 1082fcb92..f05bccd80 100644 --- a/modules/profile/profile.install +++ b/modules/profile/profile.install @@ -119,14 +119,14 @@ function profile_schema() { 'fid' => array( 'type' => 'int', 'unsigned' => TRUE, - 'not null' => FALSE, + 'not null' => TRUE, 'default' => 0, 'description' => t('The {profile_fields}.fid of the field.'), ), 'uid' => array( 'type' => 'int', 'unsigned' => TRUE, - 'not null' => FALSE, + 'not null' => TRUE, 'default' => 0, 'description' => t('The {users}.uid of the profile user.'), ), @@ -136,9 +136,9 @@ function profile_schema() { 'description' => t('The value for the field.'), ), ), + 'primary key' => array('uid', 'fid'), 'indexes' => array( 'fid' => array('fid'), - 'uid' => array('uid') ), ); |