Skip to content

Commit

Permalink
typo hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
castamir committed Dec 21, 2015
1 parent 9a59846 commit 931426a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/Joseki/Migration/Console/Command/Migrate.php
Expand Up @@ -60,10 +60,8 @@ protected function execute(InputInterface $input, OutputInterface $output)
$this->manager->migrate();
}
} catch (\Exception $e) {
$output->writeln('<comment>Migration has been cancelled</comment>');
if (class_exists('')) {

}
$output->writeln('<comment>Migration has been cancelled due to the following error:</comment>');
$output->writeln('<comment>' . $e->getMessage() .'</comment>');
return;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Joseki/Migration/Database/Adapter/MysqlAdapter.php
Expand Up @@ -28,6 +28,6 @@ public function createSchemaTable()

public function getExistingVersions()
{
return array_keys($this->connection->query(['SELECT * FROM TABLE %n', $this->table])->fetchAssoc('version'));
return array_keys($this->connection->query(['SELECT * FROM %n', $this->table])->fetchAssoc('version'));
}
}

0 comments on commit 931426a

Please sign in to comment.