diff --git a/app/Http/Controllers/Setup/DatabaseController.php b/app/Http/Controllers/Setup/DatabaseController.php index 14b03d692..4370d95a0 100644 --- a/app/Http/Controllers/Setup/DatabaseController.php +++ b/app/Http/Controllers/Setup/DatabaseController.php @@ -10,6 +10,7 @@ use Illuminate\Support\Facades\Artisan; use Illuminate\Support\Facades\Config; use Illuminate\Support\Facades\DB; +use Illuminate\Support\Facades\Schema; use Illuminate\Support\Facades\File; use Illuminate\Support\Facades\Log; use PDOException; @@ -129,10 +130,9 @@ protected function storeConfigurationInEnv(): void protected function databaseHasData(): bool { try { - $presentTables = DB::connection($this->connection) - ->getDoctrineSchemaManager() - ->listTableNames(); - } catch (PDOException|\Doctrine\DBAL\Exception $e) { + $presentTables = Schema::connection($this->connection) + ->getTableListing(); + } catch (PDOException $e) { Log::error($e->getMessage()); return false; } diff --git a/package-lock.json b/package-lock.json index c948b6d08..616fec646 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "linkace", - "version": "2.5.0", + "version": "2.5.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "linkace", - "version": "2.5.0", + "version": "2.5.1", "license": "GPL-3.0-or-later", "dependencies": { "bootstrap": "^5.3.3", diff --git a/package.json b/package.json index a91e05a0d..08a389aa0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "linkace", - "version": "2.5.0", + "version": "2.5.1", "description": "A small, selfhosted bookmark manager with advanced features, built with Laravel and Docker", "homepage": "https://github.com/Kovah/LinkAce", "repository": {