Skip invalid table names

This commit is contained in:
Michael 2020-05-15 15:16:34 +00:00
parent d71c3e0812
commit 8868b7f8d9

View file

@ -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;
}