summaryrefslogtreecommitdiffstats
path: root/core
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:19:39 +0100
commitb21070090b60fe9764d56065b38d66ebd1d4738c (patch)
treefbdd5fe238cb92f7bc6536cc8f83e5d9c8107072 /core
parente84a12c6f65cacae5e4bcc689e0c477ad3de5f31 (diff)
downloadnextcloud-server-b21070090b60fe9764d56065b38d66ebd1d4738c.tar.gz
nextcloud-server-b21070090b60fe9764d56065b38d66ebd1d4738c.zip
fix(ConvertType): Read dbtype in createConnectionParams and remove safeguardbackport/50530/stable30
Signed-off-by: Nils Wenninghoff <nils@ungemein.cool>
Diffstat (limited to 'core')
-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 592285a8309..c7b886ca0d3 100644
--- a/core/Command/Db/ConvertType.php
+++ b/core/Command/Db/ConvertType.php
@@ -152,13 +152,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);
@@ -226,7 +219,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'),