diff options
author | Jeremy <jeremy.benoist@gmail.com> | 2015-03-28 11:29:19 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-04-01 21:32:02 +0200 |
commit | 164bd801188245942ca996eda75d7a554f29746a (patch) | |
tree | 6e4892446a97f9a2b38a781ca09154da93a82646 /src/Wallabag/CoreBundle/Command/InstallCommand.php | |
parent | 1a93ee423b072ec3bcb0c437cbf9b488bdea245c (diff) | |
download | wallabag-164bd801188245942ca996eda75d7a554f29746a.tar.gz wallabag-164bd801188245942ca996eda75d7a554f29746a.tar.zst wallabag-164bd801188245942ca996eda75d7a554f29746a.zip |
Ability to prefix tables
Will fix #799
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 | } |