diff options
author | Dries Buytaert <dries@buytaert.net> | 2002-07-07 15:41:03 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2002-07-07 15:41:03 +0000 |
commit | e1e75f5bcbbc24750588cf2b5fce2b984e31ad8f (patch) | |
tree | 60683f5fb3bf583d8bc922f295da9c6687a2f22a /update.php | |
parent | b5c56be324bf110991a54d7455af4abcf08922a6 (diff) | |
download | brdo-e1e75f5bcbbc24750588cf2b5fce2b984e31ad8f.tar.gz brdo-e1e75f5bcbbc24750588cf2b5fce2b984e31ad8f.tar.bz2 |
- Update the existing variables.
Diffstat (limited to 'update.php')
-rw-r--r-- | update.php | 11 |
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);"); |