diff options
author | provokateurin <kate@provokateurin.de> | 2025-05-14 15:51:42 +0200 |
---|---|---|
committer | provokateurin <kate@provokateurin.de> | 2025-05-15 00:16:54 +0200 |
commit | 82fb8f850828d24f551ad5ef3b8523486e5104df (patch) | |
tree | 4b7bf5bcd5e8f37b1a70a9dec1f80729b97ef6e6 /core/Command/Db | |
parent | c3ddd1da46c9f75071f61d3cf7381570297a74d6 (diff) | |
download | nextcloud-server-refactor/rector-core.tar.gz nextcloud-server-refactor/rector-core.zip |
refactor: Extend rector to core/refactor/rector-core
Signed-off-by: provokateurin <kate@provokateurin.de>
Diffstat (limited to 'core/Command/Db')
-rw-r--r-- | core/Command/Db/ConvertType.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/Command/Db/ConvertType.php b/core/Command/Db/ConvertType.php index b5d1b9b9330..bca41407f68 100644 --- a/core/Command/Db/ConvertType.php +++ b/core/Command/Db/ConvertType.php @@ -13,9 +13,11 @@ use Doctrine\DBAL\Schema\Table; use OC\DB\Connection; use OC\DB\ConnectionFactory; use OC\DB\MigrationService; +use OC\DB\PgSqlTools; use OCP\DB\QueryBuilder\IQueryBuilder; use OCP\DB\Types; use OCP\IConfig; +use OCP\Server; use Stecman\Component\Symfony\Console\BashCompletion\Completion\CompletionAwareInterface; use Stecman\Component\Symfony\Console\BashCompletion\CompletionContext; use Symfony\Component\Console\Command\Command; @@ -159,7 +161,7 @@ class ConvertType extends Command implements CompletionAwareInterface { $this->readPassword($input, $output); /** @var Connection $fromDB */ - $fromDB = \OC::$server->get(Connection::class); + $fromDB = Server::get(Connection::class); $toDB = $this->getToDBConnection($input, $output); if ($input->getOption('clear-schema')) { @@ -401,7 +403,7 @@ class ConvertType extends Command implements CompletionAwareInterface { $this->copyTable($fromDB, $toDB, $schema->getTable($table), $input, $output); } if ($input->getArgument('type') === 'pgsql') { - $tools = new \OC\DB\PgSqlTools($this->config); + $tools = new PgSqlTools($this->config); $tools->resynchronizeDatabaseSequences($toDB); } // save new database config |