summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-08-07 11:22:16 -0700
committerBharat Mediratta <bharat@menalto.com>2010-08-07 11:22:16 -0700
commit67636ade24ca5fca394cc4f75227294f6927be29 (patch)
tree5bd5d7df2c0c5dd82915c2bc38966ee755b18276 /modules
parent4f0733f2c8b8b124e4faf60c53475ef48703db81 (diff)
parent16ae65464cb33b16d77cb214bebb699158d548a7 (diff)
Merge branch 'master' into bharat_dev
Diffstat (limited to 'modules')
-rw-r--r--modules/gallery/helpers/gallery_installer.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/gallery/helpers/gallery_installer.php b/modules/gallery/helpers/gallery_installer.php
index 8fc0cf96..7896a7a7 100644
--- a/modules/gallery/helpers/gallery_installer.php
+++ b/modules/gallery/helpers/gallery_installer.php
@@ -565,8 +565,10 @@ class gallery_installer {
}
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);
}