src/Robo/Commands/Blt/UpdateCommand.php
protected function executeSchemaUpdates($starting_version) {
    $starting_version = $this->convertLegacySchemaVersion($starting_version);
    $updater = new Updater('Acquia\Blt\Update\Updates', $this->getConfigValue('repo.root'));
    $updates = $updater->getUpdates($starting_version);
    if ($updates) {
      $this->say("<comment>The following BLT updates are outstanding:</comment>");
      $updater->printUpdates($updates);
      // @todo Do not prompt if this is being run from Plugin.php.
      $confirm = $this->confirm('Would you like to perform the listed updates?', TRUE);
      if ($confirm) {
        try {
          $updater->executeUpdates($updates);
          return TRUE;
        }
        catch (\Exception $e) {
          $this->logger->error($e->getMessage());
          return FALSE;
        }
      }
    }
  }
protected function executeSchemaUpdates($starting_version) {
    $starting_version = $this->convertLegacySchemaVersion($starting_version);
    $updater = new Updater('Acquia\Blt\Update\Updates', $this->getConfigValue('repo.root'));
    $updates = $updater->getUpdates($starting_version);
    if ($updates) {
      $this->say("<comment>The following BLT updates are outstanding:</comment>");
      $updater->printUpdates($updates);
      // @todo Do not prompt if this is being run from Plugin.php.
      $confirm = $this->confirm('Would you like to perform the listed updates?', TRUE);
      if ($confirm) {
        try {
          $updater->executeUpdates($updates);
          return TRUE;
        }
        catch (\Exception $e) {
          $this->logger->error($e->getMessage());
          return FALSE;
        }
      }
    }
  }
protected function executeSchemaUpdates ( $ starting_version ) { $ starting_version = $ this -> convertLegacySchemaVersion ( $ starting_version ) ; $ updater = new Updater ( 'Acquia\Blt\Update\Updates' , $ this -> getConfigValue ( 'repo.root' ) ) ; $ updates = $ updater -> getUpdates ( $ starting_version ) ; if ( $ updates ) { $ this -> say ( "<comment>The following BLT updates are outstanding:</comment>" ) ; $ updater -> printUpdates ( $ updates ) ; // @todo Do not prompt if this is being run from Plugin.php. $ confirm = $ this -> confirm ( 'Would you like to perform the listed updates?' , TRUE ) ; if ( $ confirm ) { try { $ updater -> executeUpdates ( $ updates ) ; return TRUE ; } catch ( \ Exception $ e ) { $ this -> logger -> error ( $ e -> getMessage ( ) ) ; return FALSE ; } } } }
Executes all update hooks for a given schema delta.

@param $starting_version

@return bool
TRUE if updates were successfully executed.
Executes all update hooks for a given schema delta .