Merge pull request #7274 from PapaBearNZ/patch-1

Fix Truncate Error Issue when using views in a Unittest.
This commit is contained in:
Daniel Hensby 2017-08-25 11:51:36 +01:00 committed by GitHub
commit 9d2503c3da

View File

@ -336,7 +336,7 @@ class MySQLSchemaManager extends DBSchemaManager {
public function tableList() {
$tables = array();
foreach ($this->query("SHOW TABLES") as $record) {
foreach ($this->query("SHOW FULL TABLES WHERE Table_Type != 'VIEW'") as $record) {
$table = reset($record);
$tables[strtolower($table)] = $table;
}