aboutsummaryrefslogtreecommitdiffstats
path: root/core/Command
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2024-06-28 15:55:02 +0200
committerJoas Schilling <coding@schilljs.com>2024-07-19 11:21:11 +0200
commita4c1d7291f68423c719ace177ea9a94203b31845 (patch)
treede85931323fabe5c42ae86245bb91cdd75cf609f /core/Command
parentf92352eda47c666d7964188d3100e7cdf23f6a83 (diff)
downloadnextcloud-server-a4c1d7291f68423c719ace177ea9a94203b31845.tar.gz
nextcloud-server-a4c1d7291f68423c719ace177ea9a94203b31845.zip
fix(db): Use `createSchemaManager()` method as `getSchemaManager()` is deprecated
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core/Command')
-rw-r--r--core/Command/Db/ConvertType.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/Command/Db/ConvertType.php b/core/Command/Db/ConvertType.php
index 333f29625f6..592285a8309 100644
--- a/core/Command/Db/ConvertType.php
+++ b/core/Command/Db/ConvertType.php
@@ -245,7 +245,7 @@ class ConvertType extends Command implements CompletionAwareInterface {
$output->writeln('<info>Clearing schema in new database</info>');
}
foreach ($toTables as $table) {
- $db->getSchemaManager()->dropTable($table);
+ $db->createSchemaManager()->dropTable($table);
}
}
@@ -258,7 +258,7 @@ class ConvertType extends Command implements CompletionAwareInterface {
}
return preg_match($filterExpression, $asset) !== false;
});
- return $db->getSchemaManager()->listTableNames();
+ return $db->createSchemaManager()->listTableNames();
}
/**