mirror of
https://github.com/wallabag/wallabag.git
synced 2025-07-22 17:18:37 +00:00
parent
1a93ee423b
commit
164bd80118
9 changed files with 92 additions and 8 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue