diff options
Diffstat (limited to 'src/Wallabag/CoreBundle/Command/InstallCommand.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Command/InstallCommand.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Wallabag/CoreBundle/Command/InstallCommand.php b/src/Wallabag/CoreBundle/Command/InstallCommand.php index bba2607d..493842f7 100644 --- a/src/Wallabag/CoreBundle/Command/InstallCommand.php +++ b/src/Wallabag/CoreBundle/Command/InstallCommand.php | |||
@@ -299,7 +299,8 @@ class InstallCommand extends ContainerAwareCommand | |||
299 | } | 299 | } |
300 | 300 | ||
301 | /** | 301 | /** |
302 | * Check if the schema is already created | 302 | * Check if the schema is already created. |
303 | * If we found at least oen table, it means the schema exists | ||
303 | * | 304 | * |
304 | * @return boolean | 305 | * @return boolean |
305 | */ | 306 | */ |
@@ -307,6 +308,6 @@ class InstallCommand extends ContainerAwareCommand | |||
307 | { | 308 | { |
308 | $schemaManager = $this->getContainer()->get('doctrine')->getManager()->getConnection()->getSchemaManager(); | 309 | $schemaManager = $this->getContainer()->get('doctrine')->getManager()->getConnection()->getSchemaManager(); |
309 | 310 | ||
310 | return $schemaManager->tablesExist(array('entry')); | 311 | return count($schemaManager->listTableNames()) > 0 ? true : false; |
311 | } | 312 | } |
312 | } | 313 | } |