mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-13 21:13:26 +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()
|
public function clear_logs()
|
||||||
{
|
{
|
||||||
foreach (array('log', 'log_colls', 'log_docs', 'log_search', 'log_view', 'log_thumb') as $table) {
|
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 = $this->get_connection()->prepare($sql);
|
||||||
$stmt->execute();
|
$stmt->execute();
|
||||||
$stmt->closeCursor();
|
$stmt->closeCursor();
|
||||||
|
Reference in New Issue
Block a user