summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorJoe7 <jozsef.rnagy@site.hu>2010-12-28 18:42:43 +0100
committerBharat Mediratta <bharat@menalto.com>2010-12-28 23:14:04 -0800
commit869bba5e132ceb960b72744fc3ebad5e6af14439 (patch)
treea36720000477dc58e456656478b6ec92134f5705 /modules
parent440597356d8719bdc6733d2d86aaef5f86d05a1e (diff)
Truncating table first againt collides when converting INDEX into Unique
Diffstat (limited to 'modules')
-rw-r--r--modules/gallery/helpers/gallery_installer.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gallery/helpers/gallery_installer.php b/modules/gallery/helpers/gallery_installer.php
index bf6186a9..cb314527 100644
--- a/modules/gallery/helpers/gallery_installer.php
+++ b/modules/gallery/helpers/gallery_installer.php
@@ -644,6 +644,7 @@ class gallery_installer {
}
if ($version == 41) {
+ $db->query("TRUNCATE TABLE {caches}");
$db->query("ALTER TABLE {caches} DROP INDEX `key`, ADD UNIQUE `key` (`key`)");
module::set_version("gallery", $version = 42);
}