diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-08-21 15:52:45 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-08-21 15:52:45 +0000 |
commit | cfe20d0b8e2e2ea752f0572b8b64cd995fc5159e (patch) | |
tree | 4977d98596de58736cce7cd321753099442f2cb7 | |
parent | 6b116794d9b573705dadb429567d01817a817f63 (diff) | |
download | brdo-cfe20d0b8e2e2ea752f0572b8b64cd995fc5159e.tar.gz brdo-cfe20d0b8e2e2ea752f0572b8b64cd995fc5159e.tar.bz2 |
- Patch #9654 by Bart Jansens: added some missing {} and fixed the upgrade path from Drupal 4.4.x.
-rw-r--r-- | database/updates.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/database/updates.inc b/database/updates.inc index e2332c16c..ea891ae4b 100644 --- a/database/updates.inc +++ b/database/updates.inc @@ -389,7 +389,7 @@ function update_59() { $result = db_query("SELECT DISTINCT(nid) FROM {comments} WHERE thread = ''"); while ($node = db_fetch_object($result)) { - $result2 = db_query("SELECT cid, pid FROM {comments} where nid = '%d' ORDER BY timestamp", $node->nid); + $result2 = db_query("SELECT cid, pid FROM {comments} WHERE nid = '%d' ORDER BY timestamp", $node->nid); $comments = array(); while ($comment = db_fetch_object($result2)) { $comments[$comment->cid] = $comment; @@ -884,7 +884,7 @@ function update_80() { } db_query("ALTER TABLE {users} ADD picture varchar(255) NOT NULL DEFAULT ''"); - $result = db_query("SELECT uid FROM {users}"); + $result = db_query("SELECT uid FROM {users} WHERE uid > 0"); while ($account = db_fetch_object($result)) { // Load the user record: $account = user_load(array('uid' => $account->uid)); @@ -918,7 +918,7 @@ function update_80() { unset($account->profile_avatar); // Save the update record: - user_save($account, $edit); + user_save($account, $edit, 'Personal information'); } return $ret; @@ -1515,7 +1515,7 @@ function update_102() { function update_103() { $ret = array(); - $ret[] = update_sql("CREATE TABLE files ( + $ret[] = update_sql("CREATE TABLE {files} ( fid int(10) unsigned NOT NULL default '0', nid int(10) unsigned NOT NULL default '0', filename varchar(255) NOT NULL default '', |