mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #7274 from PapaBearNZ/patch-1
Fix Truncate Error Issue when using views in a Unittest.
This commit is contained in:
commit
9d2503c3da
@ -336,7 +336,7 @@ class MySQLSchemaManager extends DBSchemaManager {
|
|||||||
|
|
||||||
public function tableList() {
|
public function tableList() {
|
||||||
$tables = array();
|
$tables = array();
|
||||||
foreach ($this->query("SHOW TABLES") as $record) {
|
foreach ($this->query("SHOW FULL TABLES WHERE Table_Type != 'VIEW'") as $record) {
|
||||||
$table = reset($record);
|
$table = reset($record);
|
||||||
$tables[strtolower($table)] = $table;
|
$tables[strtolower($table)] = $table;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user