1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-07-22 17:18:37 +00:00

Ability to prefix tables

Will fix #799
This commit is contained in:
Jeremy 2015-03-28 11:29:19 +01:00 committed by Nicolas Lœuillet
parent 1a93ee423b
commit 164bd80118
9 changed files with 92 additions and 8 deletions

View file

@ -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;
}
}