protected function runPart1($messageStreamer, $doNotlAlterFiles = false)
 {
     set_time_limit(3600);
     $messageStreamer->add(Zurmo::t('Commands', 'This is the Zurmo upgrade process. Please backup files/database before you continue.'));
     $message = Zurmo::t('Commands', 'Are you sure you want to upgrade Zurmo? [yes|no]');
     if ($this->interactive) {
         $confirm = $this->confirm($messageStreamer, $message);
     } else {
         $confirm = true;
     }
     if ($confirm) {
         UpgradeUtil::runPart1($messageStreamer, $doNotlAlterFiles);
     } else {
         $messageStreamer->add(Zurmo::t('Commands', 'Upgrade process halted.'));
     }
 }
 /**
  * Upgrade step one include:
  *
  */
 public function actionStepOne()
 {
     set_time_limit(3600);
     Yii::app()->gameHelper->muteScoringModelsOnSave();
     $nextView = new UpgradeStepOneCompleteView($this->getId(), $this->getModule()->getId());
     $view = new InstallPageView($nextView);
     echo $view->render();
     $template = ZurmoHtml::script("\$('#logging-table').prepend('{message}<br/>');");
     $messageStreamer = new MessageStreamer($template);
     $messageStreamer->setExtraRenderBytes(4096);
     $messageStreamer->add(Zurmo::t('InstallModule', 'Starting upgrade process.'));
     UpgradeUtil::runPart1($messageStreamer);
     ForgetAllCacheUtil::forgetAllCaches();
     echo ZurmoHtml::script('$("#progress-table").hide(); $("#upgrade-step-two").show();');
     Yii::app()->gameHelper->unmuteScoringModelsOnSave();
 }