diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-11-27 09:45:26 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-11-27 09:45:26 +0000 |
commit | c95c17b13311c23998f494ce982da7c633a9285d (patch) | |
tree | 3c8172e9837ddb78dbba33c962d40ef384ff6a4f /modules/user/helpers | |
parent | 92ca1ba9abb37e49df83e5c313d00b16c19efc66 (diff) |
Centralize logging around installing/uninstalling modules.
Diffstat (limited to 'modules/user/helpers')
-rw-r--r-- | modules/user/helpers/user_installer.php | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/modules/user/helpers/user_installer.php b/modules/user/helpers/user_installer.php index f47975b7..ae9296f2 100644 --- a/modules/user/helpers/user_installer.php +++ b/modules/user/helpers/user_installer.php @@ -18,13 +18,9 @@ * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ class user_installer { - protected $has_many = array('items'); - public static function install() { - Kohana::log("debug", "user_installer::install"); $db = Database::instance(); $version = module::get_version("user"); - Kohana::log("debug", "version: $version"); if ($version == 0) { $db->query("CREATE TABLE IF NOT EXISTS `users` ( @@ -54,8 +50,6 @@ class user_installer { UNIQUE KEY(`user_id`, `group_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8;"); - module::set_version("user", 1); - $registered = group::create("Registered Users"); // @todo: get this info from the installer @@ -67,6 +61,7 @@ class user_installer { // Let the admin own everything $db->query("UPDATE `items` SET `owner_id` = {$admin->id} WHERE `owner_id` IS NULL"); + module::set_version("user", 1); } } |