diff options
Diffstat (limited to 'modules/user/user.install')
-rw-r--r-- | modules/user/user.install | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/modules/user/user.install b/modules/user/user.install index a48feb5f8..e46f29d8e 100644 --- a/modules/user/user.install +++ b/modules/user/user.install @@ -120,6 +120,8 @@ function user_schema() { ), ); + // The table name here is plural, despite Drupal table naming standards, + // because "user" is a reserved word in many databases. $schema['users'] = array( 'description' => 'Stores user data.', 'fields' => array( @@ -234,6 +236,7 @@ function user_schema() { 'access' => array('access'), 'created' => array('created'), 'mail' => array('mail'), + 'picture' => array('picture'), ), 'unique keys' => array( 'name' => array('name'), @@ -890,3 +893,21 @@ function user_update_7017() { /** * @} End of "addtogroup updates-6.x-to-7.x" */ + +/** + * @addtogroup updates-7.x-extra + * @{ + */ + +/** + * Ensure there is an index on {users}.picture. + */ +function user_update_7018() { + if (!db_index_exists('users', 'picture')) { + db_add_index('users', 'picture', array('picture')); + } +} + +/** + * @} End of "addtogroup updates-7.x-extra" + */ |