sforkowany z mirror/social
fix #1129 empty only existing tables in emptyAll()
rodzic
e4217a82cf
commit
17666a5f74
|
@ -1201,10 +1201,11 @@ class CoreRequestBuilder {
|
|||
*/
|
||||
public function emptyAll() {
|
||||
foreach ($this->tables as $table) {
|
||||
$qb = $this->dbConnection->getQueryBuilder();
|
||||
$qb->delete($table);
|
||||
|
||||
$qb->execute();
|
||||
if ($schema->hasTable($table)) {
|
||||
$qb = $this->dbConnection->getQueryBuilder();
|
||||
$qb->delete($table);
|
||||
$qb->execute();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue