summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/gallery_installer.php
diff options
context:
space:
mode:
authorJoe7 <jozsef.rnagy@site.hu>2010-12-27 22:16:29 +0100
committerBharat Mediratta <bharat@menalto.com>2010-12-28 23:14:04 -0800
commit440597356d8719bdc6733d2d86aaef5f86d05a1e (patch)
treeccad5cd8dd38ccbf3f3a028916eefafd0def4cd8 /modules/gallery/helpers/gallery_installer.php
parent66fd8c7518ab71466aca72d20fb7bcd5f374af26 (diff)
Added changes to installer and upgrader scripts to support INSERT ON DUPLICATE KEY UPDATE SYNTAX in cache lib
Diffstat (limited to 'modules/gallery/helpers/gallery_installer.php')
-rw-r--r--modules/gallery/helpers/gallery_installer.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/gallery/helpers/gallery_installer.php b/modules/gallery/helpers/gallery_installer.php
index fb7933f7..bf6186a9 100644
--- a/modules/gallery/helpers/gallery_installer.php
+++ b/modules/gallery/helpers/gallery_installer.php
@@ -309,7 +309,7 @@ class gallery_installer {
module::set_var("gallery", "show_user_profiles_to", "registered_users");
module::set_var("gallery", "extra_binary_paths", "/usr/local/bin:/opt/local/bin:/opt/bin");
- module::set_version("gallery", 41);
+ module::set_version("gallery", 42);
}
static function upgrade($version) {
@@ -642,6 +642,11 @@ class gallery_installer {
module::clear_var("gallery", "_cache");
module::set_version("gallery", $version = 41);
}
+
+ if ($version == 41) {
+ $db->query("ALTER TABLE {caches} DROP INDEX `key`, ADD UNIQUE `key` (`key`)");
+ module::set_version("gallery", $version = 42);
+ }
}
static function uninstall() {