summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--update.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/update.php b/update.php
index 921c6576f..c0109d68e 100644
--- a/update.php
+++ b/update.php
@@ -44,7 +44,8 @@ $mysql_updates = array(
"2002-04-23 : roles cleanup" => "update_29",
"2002-05-02" => "update_30",
"2002-05-15" => "update_31",
- "2002-06-22" => "update_32"
+ "2002-06-22" => "update_32",
+ "2002-07-07" => "update_33"
);
// Update functions
@@ -482,6 +483,14 @@ function update_32() {
update_sql("ALTER TABLE users ADD index (timestamp);");
}
+function update_33() {
+ $result = db_query("SELECT * FROM variable WHERE value NOT LIKE 's:%;';");
+ // NOTE: the "WHERE"-part of the query above avoids variables to get serialized twice.
+ while ($variable = db_fetch_object($result)) {
+ variable_set($variable->name, $variable->value);
+ }
+}
+
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);");