Skip to content

Commit

Permalink
Merge branch 'master' into bharat_dev
Browse files Browse the repository at this point in the history
  • Loading branch information
bharat committed Aug 7, 2010
2 parents 4f0733f + 16ae654 commit 67636ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/gallery/helpers/gallery_installer.php
Expand Up @@ -565,8 +565,10 @@ static function upgrade($version) {
}

if ($version == 31) {
$db->query("ALTER TABLE {modules} ADD COLUMN `weight` int(9) DEFAULT NULL");
$db->query("ALTER TABLE {modules} ADD KEY (`weight`)");
db::update("modules")
->set("weight", "=", "id")
->set("weight", new Database_Expression("`id`"))
->execute();
module::set_version("gallery", $version = 32);
}
Expand Down

0 comments on commit 67636ad

Please sign in to comment.