diff --git a/core/Command/Db/ConvertType.php b/core/Command/Db/ConvertType.php index 7f17950ad6..554ab6cd21 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('Skipping migrations table because it was already filled by running the migrations'); + return; + } + + $chunkSize = $input->getOption('chunk-size'); $query = $fromDB->getQueryBuilder();