mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #8433 from sminnee/faster-cleartable
FIX: Use DELETE FROM instead of TRUNCATE for clearTable
This commit is contained in:
commit
2ca089bcce
@ -403,7 +403,7 @@ abstract class Database
|
||||
*/
|
||||
public function clearTable($table)
|
||||
{
|
||||
$this->query("TRUNCATE \"$table\"");
|
||||
$this->query("DELETE FROM \"$table\"");
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user