mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-13 13:03:20 +00:00
Remove TRUNCATE in favor of DELETE FROM
This commit is contained in:
@@ -1044,7 +1044,7 @@ class databox extends base
|
||||
public function clear_logs()
|
||||
{
|
||||
foreach (array('log', 'log_colls', 'log_docs', 'log_search', 'log_view', 'log_thumb') as $table) {
|
||||
$sql = 'TRUNCATE ' . $table;
|
||||
$sql = 'DELETE FROM ' . $table;
|
||||
$stmt = $this->get_connection()->prepare($sql);
|
||||
$stmt->execute();
|
||||
$stmt->closeCursor();
|
||||
|
Reference in New Issue
Block a user