From c95c17b13311c23998f494ce982da7c633a9285d Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Thu, 27 Nov 2008 09:45:26 +0000 Subject: Centralize logging around installing/uninstalling modules. --- modules/user/helpers/user_installer.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'modules/user/helpers') 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); } } -- cgit v1.2.3