diff options
-rw-r--r-- | core/Command/Db/ConvertType.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/Command/Db/ConvertType.php b/core/Command/Db/ConvertType.php index 7f17950ad65..554ab6cd21f 100644 --- a/core/Command/Db/ConvertType.php +++ b/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(); |