Skip to content

Loading…

DDC-1126: SchemaTool fails to dropSchema under SQLite due to ForeignKeyContraints checks #1724

Closed
doctrinebot opened this Issue · 2 comments

2 participants

@doctrinebot

Jira issue originally created by user @guilhermeblanco:

When attempting to $schemaTool->dropSchema($metadatas) using SQLite, it fails because it attempts to fetch for foreign key constraints.
Here is the exception:

PHP Fatal error:  Uncaught exception 'Doctrine\DBAL\DBALException' with message 'Operation 'Doctrine\DBAL\Platforms\AbstractPlatform::getListTableForeignKeysSQL' is not supported by platform.' in /Users/gblanco/Sites/mkx2/core/library/vendors/Doctrine/DBAL/DBALException.php:9
Stack trace:
#0 /Users/gblanco/Sites/mkx2/core/library/vendors/Doctrine/DBAL/Platforms/AbstractPlatform.php(1839): Doctrine\DBAL\DBALException::notSupported('Doctrine\DBAL\P...')
#1 /Users/gblanco/Sites/mkx2/core/library/vendors/Doctrine/DBAL/Schema/AbstractSchemaManager.php(261): Doctrine\DBAL\Platforms\AbstractPlatform->getListTableForeignKeysSQL('ProductEntity_P...', NULL)
#2 /Users/gblanco/Sites/mkx2/core/library/vendors/Doctrine/ORM/Tools/SchemaTool.php(639): Doctrine\DBAL\Schema\AbstractSchemaManager->listTableForeignKeys('ProductEntity_P...')
#3 /Users/gblanco/Sites/mkx2/core/library/vendors/Doctrine/ORM/Tools/SchemaTool.php(551): Doctrine\ORM\Tools\SchemaTool->getDropSchemaSQL(Array)
#4 /Users/gblanco/Sites/mkx2/core/tests/Tests/Database/AllTests. in /Users/gblanco/Sites/mkx2/core/library/vendors/Doctrine/DBAL/DBALException.php on line 9
@doctrinebot

Comment created by @guilhermeblanco:

Fixed in fe66d8b

@doctrinebot

Issue was closed with resolution "Fixed"

@doctrinebot doctrinebot added this to the 2.1 milestone
@doctrinebot doctrinebot closed this
@doctrinebot doctrinebot added the Bug label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.