Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Truncating table first againt collides when converting INDEX into Unique

  • Loading branch information...
commit 869bba5e132ceb960b72744fc3ebad5e6af14439 1 parent 4405973
@Joe7 Joe7 authored bharat committed
Showing with 1 addition and 0 deletions.
  1. +1 −0  modules/gallery/helpers/gallery_installer.php
View
1  modules/gallery/helpers/gallery_installer.php
@@ -644,6 +644,7 @@ static function upgrade($version) {
}
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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.