diff options
author | Joas Schilling <coding@schilljs.com> | 2017-07-19 12:12:38 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-07-25 12:47:39 +0200 |
commit | 42ed7a18cc841d289b6bcc83885bf93165200e09 (patch) | |
tree | 6e5fa01b661c52f56d621724483a8e95105938f8 /core | |
parent | 1d56b5276100bffa50d2fb575f498f297c5048d4 (diff) | |
download | nextcloud-server-42ed7a18cc841d289b6bcc83885bf93165200e09.tar.gz nextcloud-server-42ed7a18cc841d289b6bcc83885bf93165200e09.zip |
Skip migrations table because it was already done when creating the schema
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core')
-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(); |