summaryrefslogtreecommitdiff
path: root/database/updates.inc
diff options
context:
space:
mode:
Diffstat (limited to 'database/updates.inc')
-rw-r--r--database/updates.inc16
1 files changed, 15 insertions, 1 deletions
diff --git a/database/updates.inc b/database/updates.inc
index e97b8638f..60b7e4770 100644
--- a/database/updates.inc
+++ b/database/updates.inc
@@ -98,7 +98,8 @@ $sql_updates = array(
"2005-01-20" => "update_119",
"2005-01-25" => "update_120",
"2005-01-26" => "update_121",
- "2005-01-27" => "update_122"
+ "2005-01-27" => "update_122",
+ "2005-01-28" => "update_123"
);
function update_32() {
@@ -2178,6 +2179,19 @@ function update_122() {
}
+function update_123() {
+ $ret = array();
+
+ $ret[] = update_sql("ALTER TABLE {vocabulary} ADD module varchar(255) NOT NULL default ''");
+ $ret[] = update_sql("UPDATE {vocabulary} SET module = 'taxonomy'");
+ $vid = variable_get('forum_nav_vocabulary', '');
+ if (!empty($vid)) {
+ $ret[] = update_sql("UPDATE {vocabulary} SET module = 'forum' WHERE vid = " . $vid);
+ }
+
+ return $ret;
+}
+
function update_sql($sql) {
$edit = $_POST["edit"];
$result = db_query($sql);