aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/Wallabag/CoreBundle/Command/InstallCommand.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Command/InstallCommand.php b/src/Wallabag/CoreBundle/Command/InstallCommand.php
index 808baaf6..865a73e1 100644
--- a/src/Wallabag/CoreBundle/Command/InstallCommand.php
+++ b/src/Wallabag/CoreBundle/Command/InstallCommand.php
@@ -283,10 +283,16 @@ class InstallCommand extends ContainerAwareCommand
283 try { 283 try {
284 $schemaManager = $connection->getSchemaManager(); 284 $schemaManager = $connection->getSchemaManager();
285 } catch (\Exception $exception) { 285 } catch (\Exception $exception) {
286 // mysql & sqlite
286 if (false !== strpos($exception->getMessage(), sprintf("Unknown database '%s'", $databaseName))) { 287 if (false !== strpos($exception->getMessage(), sprintf("Unknown database '%s'", $databaseName))) {
287 return false; 288 return false;
288 } 289 }
289 290
291 // pgsql
292 if (false !== strpos($exception->getMessage(), sprintf('database "%s" does not exist', $databaseName))) {
293 return false;
294 }
295
290 throw $exception; 296 throw $exception;
291 } 297 }
292 298