summaryrefslogtreecommitdiff
path: root/modules/user
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-06-25 17:47:22 +0000
committerDries Buytaert <dries@buytaert.net>2010-06-25 17:47:22 +0000
commit7e52847ae90984d482ad7af3372a46c0d1435014 (patch)
tree29f248d79721fb0509a984348a13cddf92b1703b /modules/user
parentf56b384be0b3e7b56096f3036a3c9d7b731d2862 (diff)
downloadbrdo-7e52847ae90984d482ad7af3372a46c0d1435014.tar.gz
brdo-7e52847ae90984d482ad7af3372a46c0d1435014.tar.bz2
- Patch #690746 by jbrown, Ognyan Kulev, Crell, MichaelCole, Damien Tournoud: text column type doesn't reliably hold serialized variables.
Diffstat (limited to 'modules/user')
-rw-r--r--modules/user/user.install17
1 files changed, 16 insertions, 1 deletions
diff --git a/modules/user/user.install b/modules/user/user.install
index 0bff646bb..2a2b6da6f 100644
--- a/modules/user/user.install
+++ b/modules/user/user.install
@@ -219,7 +219,7 @@ function user_schema() {
'description' => 'E-mail address used for initial account creation.',
),
'data' => array(
- 'type' => 'text',
+ 'type' => 'blob',
'not null' => FALSE,
'size' => 'big',
'serialize' => TRUE,
@@ -624,6 +624,21 @@ function user_update_7008() {
variable_set('user_register', USER_REGISTER_VISITORS);
}
}
+
+/**
+ * Converts fields that store serialized variables from text to blob.
+ */
+function user_update_7009() {
+ $spec = array(
+ 'type' => 'blob',
+ 'not null' => FALSE,
+ 'size' => 'big',
+ 'serialize' => TRUE,
+ 'description' => 'A serialized array of name value pairs that are related to the user. Any form values posted during user edit are stored and are loaded into the $user object during user_load(). Use of this field is discouraged and it will likely disappear in a future version of Drupal.',
+ );
+ db_change_field('users', 'data', 'data', $spec);
+}
+
/**
* @} End of "defgroup user-updates-6.x-to-7.x"
* The next series of updates should start at 8000.