summaryrefslogtreecommitdiff
path: root/modules/user
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-04-10 17:30:15 +0000
committerDries Buytaert <dries@buytaert.net>2010-04-10 17:30:15 +0000
commitbdb7e56143d52bb8528042591f0e8df9afde45db (patch)
tree6801086da136619cdecfe34a94d482118f5fe4e7 /modules/user
parente892ed5c317f7d37da09a2ad3a0e113703437b10 (diff)
downloadbrdo-bdb7e56143d52bb8528042591f0e8df9afde45db.tar.gz
brdo-bdb7e56143d52bb8528042591f0e8df9afde45db.tar.bz2
- Patch #741578 by nikgregory, andypost, Berdir, noahb: 'File' is a reserved word that should not be used.
Diffstat (limited to 'modules/user')
-rw-r--r--modules/user/user.install11
1 files changed, 6 insertions, 5 deletions
diff --git a/modules/user/user.install b/modules/user/user.install
index 69f80af6a..6af67b9b1 100644
--- a/modules/user/user.install
+++ b/modules/user/user.install
@@ -201,7 +201,7 @@ function user_schema() {
'type' => 'int',
'not null' => TRUE,
'default' => 0,
- 'description' => "Foreign key: {file}.fid of user's picture.",
+ 'description' => "Foreign key: {file_managed}.fid of user's picture.",
),
'init' => array(
'type' => 'varchar',
@@ -473,7 +473,8 @@ function user_update_7003() {
}
/**
- * Add the user's pictures to the {file} table and make them managed files.
+ * Add the user's pictures to the {file_managed} table and make them managed
+ * files.
*/
function user_update_7004(&$sandbox) {
@@ -481,7 +482,7 @@ function user_update_7004(&$sandbox) {
'type' => 'int',
'not null' => TRUE,
'default' => 0,
- 'description' => t("Foreign key: {file}.fid of user's picture."),
+ 'description' => t("Foreign key: {file_managed}.fid of user's picture."),
);
if (!isset($sandbox['progress'])) {
@@ -498,8 +499,8 @@ function user_update_7004(&$sandbox) {
$sandbox['max'] = db_query("SELECT COUNT(*) FROM {users} WHERE picture <> ''")->fetchField();
}
- // As a batch operation move the photos into the {file} table and update the
- // {users} records.
+ // As a batch operation move the photos into the {file_managed} table and
+ // update the {users} records.
$limit = 500;
$result = db_query_range("SELECT uid, picture FROM {users} WHERE picture <> '' AND uid > :uid ORDER BY uid", 0, $limit, array(':uid' => $sandbox['last_user_processed']));
foreach ($result as $user) {