ErrorLog: use DELETE FROM instead of TRUNCATE

This commit is contained in:
Aaron van Geffen 2024-12-22 15:35:50 +01:00
parent bb8a8bad27
commit 1e26a51d08

View File

@ -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()