Skip migrations table because it was already done when creating the schema

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2017-07-19 12:12:38 +02:00
parent 1d56b52761
commit 42ed7a18cc
No known key found for this signature in database
GPG Key ID: E166FD8976B3BAC8
1 changed files with 6 additions and 0 deletions

View File

@ -277,6 +277,12 @@ class ConvertType extends Command implements CompletionAwareInterface {
* @suppress SqlInjectionChecker
*/
protected function copyTable(Connection $fromDB, Connection $toDB, $table, InputInterface $input, OutputInterface $output) {
if ($table === $toDB->getPrefix() . 'migrations') {
$output->writeln('<comment>Skipping migrations table because it was already filled by running the migrations</comment>');
return;
}
$chunkSize = $input->getOption('chunk-size');
$query = $fromDB->getQueryBuilder();