summaryrefslogtreecommitdiff
path: root/update.php
diff options
context:
space:
mode:
Diffstat (limited to 'update.php')
-rw-r--r--update.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/update.php b/update.php
index ef362324b..d504f4a7b 100644
--- a/update.php
+++ b/update.php
@@ -440,11 +440,11 @@ function _update_next_thread($structure, $parent) {
function update_63() {
if ($GLOBALS["db_type"] == "pgsql") {
- update_sql("INSERT INTO {users} (uid, name, mail, timestamp) VALUES ('0', 'Anonymous', 'root@localhost', '". time() ."')");
+ update_sql("INSERT INTO {users} (uid, name, mail, timestamp) VALUES ('0', '', '', '". time() ."')");
}
else {
update_sql("ALTER TABLE {users} CHANGE uid uid int(10) unsigned NOT NULL default '0'");
- update_sql("INSERT INTO {users} (uid, name, mail, timestamp) VALUES ('0', 'Anonymous', 'root@localhost', '". time() ."')");
+ update_sql("INSERT INTO {users} (uid, name, mail, timestamp) VALUES ('0', '', '', '". time() ."')");
$users = db_result(db_query("SELECT MAX(uid) FROM {users};"));
update_sql("INSERT INTO {sequences} (name, id) VALUES ('users_uid', '$users')");
}
@@ -536,8 +536,10 @@ function update_69() {
else {
update_sql("ALTER TABLE {statistics} RENAME TO {node_counter}");
update_sql("ALTER TABLE {path} RENAME TO {url_alias}");
- update_sql("UPDATE {sequences} set name = '{url_alias}_pid' where name = '{path}_pid'");
+ update_sql("UPDATE {sequences} SET name = '{url_alias}_pid' WHERE name = '{path}_pid'");
}
+
+ update_sql("UPDATE {users} SET name = '' WHERE uid = 0;");
}
/*