aboutsummaryrefslogtreecommitdiffstats
path: root/core/Command
diff options
context:
space:
mode:
authorNils Wenninghoff <nils@ungemein.cool>2024-10-12 00:03:32 +0200
committerprovokateurin <kate@provokateurin.de>2025-01-30 12:21:30 +0100
commit3ef04909b716ba1495b6ba1d4797f9f467941065 (patch)
treef8d09bad59acad0bf8c5d42df25e687fe934efc1 /core/Command
parent29270757ef1943f6abac90356370614f592e45f2 (diff)
downloadnextcloud-server-backport/50530/stable29.tar.gz
nextcloud-server-backport/50530/stable29.zip
fix(ConvertType): Read dbtype in createConnectionParams and remove safeguardbackport/50530/stable29
Signed-off-by: Nils Wenninghoff <nils@ungemein.cool>
Diffstat (limited to 'core/Command')
-rw-r--r--core/Command/Db/ConvertType.php9
1 files changed, 1 insertions, 8 deletions
diff --git a/core/Command/Db/ConvertType.php b/core/Command/Db/ConvertType.php
index 4d95ee50c4e..fd0db129b7f 100644
--- a/core/Command/Db/ConvertType.php
+++ b/core/Command/Db/ConvertType.php
@@ -177,13 +177,6 @@ class ConvertType extends Command implements CompletionAwareInterface {
}
protected function execute(InputInterface $input, OutputInterface $output): int {
- // WARNING:
- // Leave in place until #45257 is addressed to prevent data loss (hopefully in time for the next maintenance release)
- //
- throw new \InvalidArgumentException(
- 'This command is temporarily disabled (until the next maintenance release).'
- );
-
$this->validateInput($input, $output);
$this->readPassword($input, $output);
@@ -251,7 +244,7 @@ class ConvertType extends Command implements CompletionAwareInterface {
protected function getToDBConnection(InputInterface $input, OutputInterface $output) {
$type = $input->getArgument('type');
- $connectionParams = $this->connectionFactory->createConnectionParams();
+ $connectionParams = $this->connectionFactory->createConnectionParams(type: $type);
$connectionParams = array_merge($connectionParams, [
'host' => $input->getArgument('hostname'),
'user' => $input->getArgument('username'),