@@ -28,6 +28,7 @@ use Doctrine\DBAL\DBALException;
...
@@ -28,6 +28,7 @@ use Doctrine\DBAL\DBALException;
* @author Konsta Vesterinen <kvesteri@cc.hut.fi>
* @author Konsta Vesterinen <kvesteri@cc.hut.fi>
* @author Lukas Smith <smith@pooteeweet.org> (PEAR MDB2 library)
* @author Lukas Smith <smith@pooteeweet.org> (PEAR MDB2 library)
* @author Jonathan H. Wage <jonwage@gmail.com>
* @author Jonathan H. Wage <jonwage@gmail.com>
* @author Martin Hasoň <martin.hason@gmail.com>
* @version $Revision$
* @version $Revision$
* @since 2.0
* @since 2.0
*/
*/
...
@@ -121,15 +122,29 @@ class SqliteSchemaManager extends AbstractSchemaManager
...
@@ -121,15 +122,29 @@ class SqliteSchemaManager extends AbstractSchemaManager
if(!empty($tableForeignKeys)){
if(!empty($tableForeignKeys)){
$createSql=$this->_conn->fetchAll("SELECT sql FROM (SELECT * FROM sqlite_master UNION ALL SELECT * FROM sqlite_temp_master) WHERE type = 'table' AND name = '$table'");
$createSql=$this->_conn->fetchAll("SELECT sql FROM (SELECT * FROM sqlite_master UNION ALL SELECT * FROM sqlite_temp_master) WHERE type = 'table' AND name = '$table'");