/**
  * @param BasePlugin $plugin
  *
  * @return bool
  */
 public function setNewPluginInfo(BasePlugin $plugin)
 {
     $affectedRows = craft()->db->createCommand()->update('plugins', array('version' => $plugin->getVersion(), 'schemaVersion' => $plugin->getSchemaVersion()), array('class' => $plugin->getClassHandle()));
     $success = (bool) $affectedRows;
     return $success;
 }