summaryrefslogtreecommitdiff
path: root/update.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-12-06 17:33:05 +0000
committerDries Buytaert <dries@buytaert.net>2001-12-06 17:33:05 +0000
commit20b4b7166f851221eef4c845d396af2efd581822 (patch)
treed922952bac8cdacae68139b8ffa9008fe19b3174 /update.php
parent2b01b838c802226ad8f097aa5b7f4512de73d8e7 (diff)
downloadbrdo-20b4b7166f851221eef4c845d396af2efd581822.tar.gz
brdo-20b4b7166f851221eef4c845d396af2efd581822.tar.bz2
- book.module:
+ Added (1) support for "PHP pages" (dynamic pages), and (2) made it possible to link other node types into the book's tree/outline. It works just fine, yet the only (obvious) downside of (2) is that the navigation tree/links gets "interrupted" when you view non-book pages in the book. [SQL update required, see update.php] + Tidied up the book table. [SQL update required, see update.php] - various updates: + Fine-tuned the new node system. + Updated the inline/code documentation. + Improved teaser handling of all node types. + Made several small usability improvements to the node admin pages.
Diffstat (limited to 'update.php')
-rw-r--r--update.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/update.php b/update.php
index 80bd9771a..e71bd0ff6 100644
--- a/update.php
+++ b/update.php
@@ -18,6 +18,7 @@ $mysql_updates = array(
"2001-11-04" => "update_9",
"2001-11-17: distributed authentication" => "update_10",
"2001-12-01" => "update_11",
+ "2001-12-06" => "update_12",
);
// Update functions
@@ -241,6 +242,11 @@ function update_11() {
update_sql("ALTER TABLE users ADD session TEXT;");
}
+function update_12() {
+ update_sql("ALTER TABLE book DROP revision;");
+ update_sql("ALTER TABLE book ADD format tinyint(2) DEFAULT '0';");
+}
+
// System functions
function update_sql($sql) {
global $edit;