diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-08-07 11:22:16 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-08-07 11:22:16 -0700 |
commit | 67636ade24ca5fca394cc4f75227294f6927be29 (patch) | |
tree | 5bd5d7df2c0c5dd82915c2bc38966ee755b18276 /modules | |
parent | 4f0733f2c8b8b124e4faf60c53475ef48703db81 (diff) | |
parent | 16ae65464cb33b16d77cb214bebb699158d548a7 (diff) |
Merge branch 'master' into bharat_dev
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gallery/helpers/gallery_installer.php | 4 |
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); } |