ErrorLog: use DELETE FROM instead of TRUNCATE
This commit is contained in:
parent
bb8a8bad27
commit
1e26a51d08
@ -24,7 +24,7 @@ class ErrorLog
|
|||||||
|
|
||||||
public static function flush()
|
public static function flush()
|
||||||
{
|
{
|
||||||
return Registry::get('db')->query('TRUNCATE log_errors');
|
return Registry::get('db')->query('DELETE FROM log_errors');
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function getCount()
|
public static function getCount()
|
||||||
|
Loading…
Reference in New Issue
Block a user