From 164bd801188245942ca996eda75d7a554f29746a Mon Sep 17 00:00:00 2001 From: Jeremy Date: Sat, 28 Mar 2015 11:29:19 +0100 Subject: Ability to prefix tables Will fix #799 --- src/Wallabag/CoreBundle/Command/InstallCommand.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/Wallabag/CoreBundle/Command') 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 } /** - * Check if the schema is already created + * Check if the schema is already created. + * If we found at least oen table, it means the schema exists * * @return boolean */ @@ -307,6 +308,6 @@ class InstallCommand extends ContainerAwareCommand { $schemaManager = $this->getContainer()->get('doctrine')->getManager()->getConnection()->getSchemaManager(); - return $schemaManager->tablesExist(array('entry')); + return count($schemaManager->listTableNames()) > 0 ? true : false; } } -- cgit v1.2.3