Skip to content
Snippets Groups Projects
Commit cfe20d0b authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #9654 by Bart Jansens: added some missing {} and fixed the upgrade path from Drupal 4.4.x.
parent 6b116794
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -389,7 +389,7 @@ function update_59() { ...@@ -389,7 +389,7 @@ function update_59() {
$result = db_query("SELECT DISTINCT(nid) FROM {comments} WHERE thread = ''"); $result = db_query("SELECT DISTINCT(nid) FROM {comments} WHERE thread = ''");
while ($node = db_fetch_object($result)) { 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(); $comments = array();
while ($comment = db_fetch_object($result2)) { while ($comment = db_fetch_object($result2)) {
$comments[$comment->cid] = $comment; $comments[$comment->cid] = $comment;
...@@ -884,7 +884,7 @@ function update_80() { ...@@ -884,7 +884,7 @@ function update_80() {
} }
db_query("ALTER TABLE {users} ADD picture varchar(255) NOT NULL DEFAULT ''"); 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)) { while ($account = db_fetch_object($result)) {
// Load the user record: // Load the user record:
$account = user_load(array('uid' => $account->uid)); $account = user_load(array('uid' => $account->uid));
...@@ -918,7 +918,7 @@ function update_80() { ...@@ -918,7 +918,7 @@ function update_80() {
unset($account->profile_avatar); unset($account->profile_avatar);
// Save the update record: // Save the update record:
user_save($account, $edit); user_save($account, $edit, 'Personal information');
} }
return $ret; return $ret;
...@@ -1515,7 +1515,7 @@ function update_102() { ...@@ -1515,7 +1515,7 @@ function update_102() {
function update_103() { function update_103() {
$ret = array(); $ret = array();
$ret[] = update_sql("CREATE TABLE files ( $ret[] = update_sql("CREATE TABLE {files} (
fid int(10) unsigned NOT NULL default '0', fid int(10) unsigned NOT NULL default '0',
nid int(10) unsigned NOT NULL default '0', nid int(10) unsigned NOT NULL default '0',
filename varchar(255) NOT NULL default '', filename varchar(255) NOT NULL default '',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment