mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
b04a1ab41c
When using a view in a SilverStripe project, whenever the tear down scripts for the Unittests are run the following error occurs: Couldn't run query: TRUNCATE "ActivityPoints_view" Table 'ss_tmpdb2391727.ActivityPoints_view' doesn't exist This was due to the MySQLSchemaManager::tableList() function assuming that all records in the TABLES were actual tables containing data. This small tweak fixes the issue by modifying the SQL to filter out views from the list before truncating. |
||
---|---|---|
.. | ||
Database.php | ||
DatabaseException.php | ||
DBConnector.php | ||
DBQueryBuilder.php | ||
DBSchemaManager.php | ||
MySQLDatabase.php | ||
MySQLiConnector.php | ||
MySQLQuery.php | ||
MySQLQueryBuilder.php | ||
MySQLSchemaManager.php | ||
MySQLStatement.php | ||
PDOConnector.php | ||
PDOQuery.php | ||
Query.php |