diff options
author | Joe7 <jozsef.rnagy@site.hu> | 2010-12-28 18:42:43 +0100 |
---|---|---|
committer | Joe7 <jozsef.rnagy@site.hu> | 2010-12-28 18:42:43 +0100 |
commit | 3c31237406a4a55bfc0955ca433a1be0aec210a7 (patch) | |
tree | c7d1081014e31db439864bbbca766634985a2a71 | |
parent | 15792c4ddfec9741324c6968cc3e70fb23cef8ad (diff) |
Truncating table first againt collides when converting INDEX into Unique
-rw-r--r-- | modules/gallery/helpers/gallery_installer.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gallery/helpers/gallery_installer.php b/modules/gallery/helpers/gallery_installer.php index ecabc766..97a3fb83 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); } |