Commit 318ce81a authored by Steven Wittens's avatar Steven Wittens
Browse files

Fixing some missing db prefix braces and some bad indentation. Adding a TODO for PGSQL to update_105.
parent a82b5143
......@@ -1752,17 +1752,18 @@ function update_104() {
function update_105() {
// TODO: needs PGSQL equivalent
$ret = array();
$shadowupdates = db_query("SELECT nid,tid FROM {forum} WHERE shadow=0");
while ($shadowrecord = db_fetch_object($shadowupdates)) {
db_query("DELETE FROM term_node WHERE nid = %d AND tid <> %d", $shadowrecord->nid, $shadowrecord->tid);
db_query("DELETE FROM {term_node} WHERE nid = %d AND tid <> %d", $shadowrecord->nid, $shadowrecord->tid);
$ret[] = update_sql("ALTER TABLE {forum} DROP shadow");
$ret[] = update_sql('ALTER TABLE node ADD INDEX node_status_type (status, type, nid)');
$ret[] = update_sql('ALTER TABLE {node} ADD INDEX node_status_type (status, type, nid)');
$ret[] = update_sql("CREATE TABLE node_comment_statistics (
$ret[] = update_sql("CREATE TABLE {node_comment_statistics} (
nid int(10) unsigned NOT NULL auto_increment,
cid int(10) unsigned NOT NULL default '0',
last_comment_timestamp int(11) NOT NULL default '0',
......@@ -1771,7 +1772,7 @@ function update_105() {
comment_count int(10) unsigned NOT NULL default '0',
KEY node_comment_timestamp (last_comment_timestamp)
$ret[] = update_sql("INSERT INTO {node_comment_statistics} (nid, cid, last_comment_timestamp, last_comment_name, last_comment_uid, comment_count) SELECT n.nid, 0, n.created, NULL, n.uid, 0 FROM {node} n");
$ret[] = update_sql("CREATE TABLE {forum_conv_temp} (
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment