diff options
Diffstat (limited to 'updates')
-rw-r--r-- | updates/3.00-to-x.xx.mysql | 5 | ||||
-rw-r--r-- | updates/3.00-to-x.xx.php | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/updates/3.00-to-x.xx.mysql b/updates/3.00-to-x.xx.mysql index 1944b61bc..0495ff5c9 100644 --- a/updates/3.00-to-x.xx.mysql +++ b/updates/3.00-to-x.xx.mysql @@ -145,6 +145,11 @@ ALTER TABLE users CHANGE session sid varchar(32) DEFAULT '' NOT NULL; # 02/11/01: ALTER TABLE node ADD revisions TEXT DEFAULT '' NOT NULL; +# 04/11/01: +ALTER TABLE book ADD revision int(2) DEFAULT '1' NOT NULL; +ALTER TABLE book DROP log; +ALTER TABLE book DROP pid; + # # Run the third part of updates/3.00-to-x.xx.php: # visit http://www.yoursite.com/3.00-to-x.xx.php?part=3 diff --git a/updates/3.00-to-x.xx.php b/updates/3.00-to-x.xx.php index 366dfda51..04ccfd0bc 100644 --- a/updates/3.00-to-x.xx.php +++ b/updates/3.00-to-x.xx.php @@ -48,7 +48,7 @@ if ($part == 2) { while ($object = db_fetch_object($result)) { $node = node_load(array("nid" => $object->nid)); - + $body = db_result(db_query("SELECT body_old FROM $node->type WHERE nid = $node->nid"), 0); switch ($node->type) { @@ -63,7 +63,7 @@ if ($part == 2) { default: print "unknown node $node->nid '$node->title' ($node->type)<br />"; } - + unset($node); unset($body); } |