diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-12-05 12:50:28 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-12-05 12:50:28 +0000 |
commit | 0b06c68b988410c49c9f4ffbf8c3160d4e9da2c7 (patch) | |
tree | f0dc6e87c58f3e0f7315e2808ab88a2f81ba1c52 /modules/profile/profile.install | |
parent | 4e9d1f7d1c97600113edc7bba3f49b59d0bdcb20 (diff) | |
download | brdo-0b06c68b988410c49c9f4ffbf8c3160d4e9da2c7.tar.gz brdo-0b06c68b988410c49c9f4ffbf8c3160d4e9da2c7.tar.bz2 |
- Patch #288039 by sun, ff1, agentrickard, fgm, ultimateboy: improved usability of the aliased URL admin page.
Diffstat (limited to 'modules/profile/profile.install')
-rw-r--r-- | modules/profile/profile.install | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/modules/profile/profile.install b/modules/profile/profile.install index e21d8a11a..a4c1fd24f 100644 --- a/modules/profile/profile.install +++ b/modules/profile/profile.install @@ -23,7 +23,7 @@ function profile_uninstall() { * Implementation of hook_schema(). */ function profile_schema() { - $schema['profile_fields'] = array( + $schema['profile_field'] = array( 'description' => 'Stores profile field information.', 'fields' => array( 'fid' => array( @@ -117,7 +117,7 @@ function profile_schema() { 'primary key' => array('fid'), ); - $schema['profile_values'] = array( + $schema['profile_value'] = array( 'description' => 'Stores values for profile fields.', 'fields' => array( 'fid' => array( @@ -125,7 +125,7 @@ function profile_schema() { 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, - 'description' => 'The {profile_fields}.fid of the field.', + 'description' => 'The {profile_field}.fid of the field.', ), 'uid' => array( 'type' => 'int', @@ -148,3 +148,13 @@ function profile_schema() { return $schema; } + +/** + * Rename {profile_fields} table to {profile_field} and {profile_values} to {profile_value}. + */ +function profile_update_7001() { + $ret = array(); + db_rename_table($ret, 'profile_fields', 'profile_field'); + db_rename_table($ret, 'profile_values', 'profile_value'); + return $ret; +} |