Skip to content

Commit

Permalink
Merge branch '8.x' of https://github.com/acquia/blt into 8.x
Browse files Browse the repository at this point in the history
  • Loading branch information
grasmash committed Jun 1, 2017
2 parents 21c465e + ad75b8f commit d727eee
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/Robo/Commands/Blt/UpdateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ public function createProject() {
public function update() {
$this->rsyncTemplate();
$this->mungeProjectYml();
$this->executeSchemaUpdates($this->currentSchemaVersion);
if ($this->executeSchemaUpdates($this->currentSchemaVersion)) {
$this->updateSchemaVersionFile();
}
$this->cleanup();
$exit_code = $this->invokeCommand('install-alias');

Expand Down Expand Up @@ -260,7 +262,13 @@ protected function executeSchemaUpdates($starting_version) {
$updater->printUpdates($updates);
$confirm = $this->confirm('Would you like to perform the listed updates?');
if ($confirm) {
$updater->executeUpdates($updates);
try {
$updater->executeUpdates($updates);
return TRUE;
}
catch (\Exception $e) {
return FALSE;
}
}
}
}
Expand Down

0 comments on commit d727eee

Please sign in to comment.