summaryrefslogtreecommitdiff
path: root/update.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2002-12-30 12:03:53 +0000
committerDries Buytaert <dries@buytaert.net>2002-12-30 12:03:53 +0000
commit0475d4fbc44d9eb89e76c61cd553fb067da7e60a (patch)
treeacd5cf5da07e5be2e82cd7e93cf925ddf92be66c /update.php
parentcc01e613888072515a146ac6abb2967fa1455dec (diff)
downloadbrdo-0475d4fbc44d9eb89e76c61cd553fb067da7e60a.tar.gz
brdo-0475d4fbc44d9eb89e76c61cd553fb067da7e60a.tar.bz2
Patch by Marco:
- rewrote taxonomy_get_tree() for improved performance and cleaner code - fixed a bug in _taxonomy_term_select() with multiple parents - added hooks in vocabulary and term insert, update and delete - fixed a bug in taxonomy_save_vocabulary() (cache_clear_all() was never called)
Diffstat (limited to 'update.php')
-rw-r--r--update.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/update.php b/update.php
index b1afc3d10..0ffd5a731 100644
--- a/update.php
+++ b/update.php
@@ -59,7 +59,8 @@ $mysql_updates = array(
"2002-11-08" => "update_44",
"2002-11-20" => "update_45",
"2002-12-10" => "update_46",
- "2002-12-22" => "update_47"
+ "2002-12-22" => "update_47",
+ "2002-12-29" => "update_48"
);
// Update functions
@@ -655,6 +656,12 @@ function update_47() {
);");
}
+function update_48() {
+ if ($max = db_result(db_query("SELECT MAX(tid) FROM vocabulary"))) {
+ update_sql("REPLACE INTO sequences VALUES ('vocabulary', $max)");
+ }
+}
+
function update_upgrade3() {
update_sql("INSERT INTO system VALUES ('archive.module','archive','module','',1)");
update_sql("INSERT INTO system VALUES ('block.module','block','module','',1)");