aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Command
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2015-04-01 21:53:48 +0200
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2015-04-01 21:53:48 +0200
commitd6fa2f70ac3c798b28ce33c6c143f45c09c74062 (patch)
tree40769c29279d189dfe0dbb8aa513122f9172ebde /src/Wallabag/CoreBundle/Command
parent1a93ee423b072ec3bcb0c437cbf9b488bdea245c (diff)
parent276a1e9d3fb7e83569d16bcb37a67607d4ace8be (diff)
downloadwallabag-d6fa2f70ac3c798b28ce33c6c143f45c09c74062.tar.gz
wallabag-d6fa2f70ac3c798b28ce33c6c143f45c09c74062.tar.zst
wallabag-d6fa2f70ac3c798b28ce33c6c143f45c09c74062.zip
Merge pull request #1165 from wallabag/v2-prefix-db
Prefix table
Diffstat (limited to 'src/Wallabag/CoreBundle/Command')
-rw-r--r--src/Wallabag/CoreBundle/Command/InstallCommand.php5
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}