mirror of
https://github.com/wallabag/wallabag.git
synced 2025-06-05 15:08:47 +00:00
Fix getSchemaManager() depreciation
This commit is contained in:
parent
0cbd0ce28a
commit
e5a8b152eb
1 changed files with 2 additions and 2 deletions
|
@ -378,7 +378,7 @@ class InstallCommand extends Command
|
||||||
$databaseName = $connection->getDatabase();
|
$databaseName = $connection->getDatabase();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$schemaManager = $connection->getSchemaManager();
|
$schemaManager = $connection->createSchemaManager();
|
||||||
} catch (\Exception $exception) {
|
} catch (\Exception $exception) {
|
||||||
// mysql & sqlite
|
// mysql & sqlite
|
||||||
if (false !== strpos($exception->getMessage(), sprintf("Unknown database '%s'", $databaseName))) {
|
if (false !== strpos($exception->getMessage(), sprintf("Unknown database '%s'", $databaseName))) {
|
||||||
|
@ -421,7 +421,7 @@ class InstallCommand extends Command
|
||||||
*/
|
*/
|
||||||
private function isSchemaPresent()
|
private function isSchemaPresent()
|
||||||
{
|
{
|
||||||
$schemaManager = $this->entityManager->getConnection()->getSchemaManager();
|
$schemaManager = $this->entityManager->getConnection()->createSchemaManager();
|
||||||
|
|
||||||
return \count($schemaManager->listTableNames()) > 0 ? true : false;
|
return \count($schemaManager->listTableNames()) > 0 ? true : false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue