Browse Source

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

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/5772/head
Joas Schilling 8 years ago
parent
commit
42ed7a18cc
No known key found for this signature in database GPG Key ID: E166FD8976B3BAC8
  1. 6
      core/Command/Db/ConvertType.php

6
core/Command/Db/ConvertType.php

@ -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();

Loading…
Cancel
Save