From 42ed7a18cc841d289b6bcc83885bf93165200e09 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 19 Jul 2017 12:12:38 +0200 Subject: Skip migrations table because it was already done when creating the schema Signed-off-by: Joas Schilling --- core/Command/Db/ConvertType.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'core/Command') 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('Skipping migrations table because it was already filled by running the migrations'); + return; + } + + $chunkSize = $input->getOption('chunk-size'); $query = $fromDB->getQueryBuilder(); -- cgit v1.2.3