diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-09-08 20:59:39 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-09-08 20:59:39 -0700 |
commit | 6cfcab2a5ee054e6e04857c86fbd363895e5ea83 (patch) | |
tree | 47ad6f24600967898546d8057f79c309ee06f8a9 | |
parent | 48becbe017758fb6fb95f0806ece879764249f37 (diff) |
Amend the v12 installer to empty out the relative_url_cache and
relative_path_cache columns.
-rw-r--r-- | modules/gallery/helpers/gallery_installer.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/gallery/helpers/gallery_installer.php b/modules/gallery/helpers/gallery_installer.php index 91654afe..a1856424 100644 --- a/modules/gallery/helpers/gallery_installer.php +++ b/modules/gallery/helpers/gallery_installer.php @@ -353,7 +353,9 @@ class gallery_installer { // This is imperfect since some of the slugs may contain invalid characters, but it'll do // for now because we don't want a lengthy operation here. $db->query("UPDATE {items} SET `slug` = `name`"); - $db->query("UPDATE {items} SET `relative_url_cache` = `relative_path_cache`"); + + // Flush all path caches becuase we're going to start urlencoding them. + $db->query("UPDATE {items} SET `relative_url_cache` = NULL, `relative_path_cache` = NULL"); module::set_version("gallery", $version = 12); } } |