summaryrefslogtreecommitdiff
path: root/modules/user/user.install
diff options
context:
space:
mode:
Diffstat (limited to 'modules/user/user.install')
-rw-r--r--modules/user/user.install10
1 files changed, 9 insertions, 1 deletions
diff --git a/modules/user/user.install b/modules/user/user.install
index c93cf0e9e..1f57dac91 100644
--- a/modules/user/user.install
+++ b/modules/user/user.install
@@ -124,7 +124,7 @@ function user_schema() {
),
'mail' => array(
'type' => 'varchar',
- 'length' => 64,
+ 'length' => 254,
'not null' => FALSE,
'default' => '',
'description' => "User's email address.",
@@ -479,6 +479,14 @@ function user_update_7004(&$sandbox) {
}
/**
+ * Change the users table to allow longer email addresses - 254 characters instead of 64.
+ */
+function user_update_7005(&$sandbox) {
+ $schema = user_schema();
+ db_change_field('users', 'mail', 'mail', $schema['users']['fields']['mail']);
+}
+
+/**
* @} End of "defgroup user-updates-6.x-to-7.x"
* The next series of updates should start at 8000.
*/