Skip invalid table names
This commit is contained in:
parent
d71c3e0812
commit
8868b7f8d9
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ trait DatabaseTestTrait
|
|||
$data = include $fixture;
|
||||
|
||||
foreach ($data as $tableName => $rows) {
|
||||
if (!is_array($rows)) {
|
||||
if (!is_array($rows) && !is_numeric($tableName)) {
|
||||
$dba->p('TRUNCATE TABLE `' . $tableName . '``');
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue