public function upgrade_0_5()
 {
     global $lang, $db;
     MyProfileUtils::lang_load_config_myprofile();
     $gid = MyProfileUtils::get_settinggroup_gid("myprofilevisitors");
     $settings = array();
     $settings[] = array("name" => "mpprofileviewsenabled", "title" => $lang->mp_myprofile_views_enabled, "description" => $lang->mp_myprofile_views_enabled_desc, "optionscode" => "yesno", "value" => 1, "gid" => $gid);
     MyProfileUtils::insert_settings($settings);
     // Modify the users table
     if (!$db->field_exists("viewcount", "users")) {
         $db->add_column("users", "viewcount", "int unsigned DEFAULT 0");
     }
 }