diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-06-15 16:14:30 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-06-15 16:14:30 -0700 |
commit | 94ada2361df1132d83fa5b14d1b6843725b29166 (patch) | |
tree | 19a8705b76ffb66bf35873cb1a235825607fa2be | |
parent | 1df752a2f2aba75358d9bb627bc6da9fad7ca889 (diff) |
Fix a bug in the upgrader where we weren't bumping the version number
during the upgrade path, so the 2nd stanza (version 2 to version 3) was never getting executed.
-rw-r--r-- | modules/comment/helpers/comment_installer.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/comment/helpers/comment_installer.php b/modules/comment/helpers/comment_installer.php index 7a32bf67..18d51758 100644 --- a/modules/comment/helpers/comment_installer.php +++ b/modules/comment/helpers/comment_installer.php @@ -55,12 +55,12 @@ class comment_installer { $db = Database::instance(); if ($version == 1) { $db->query("ALTER TABLE {comments} CHANGE `state` `state` varchar(15) default 'unpublished'"); - module::set_version("comment", 2); + module::set_version("comment", $version = 2); } if ($version == 2) { module::set_var("comment", "access_permissions", "everybody"); - module::set_version("comment", 3); + module::set_version("comment", $version = 3); } } |