[*] MO : pscleaner reset employees notyfications

pscleaner afetr truncating orders, messages and customers reset also employees notyfications
This commit is contained in:
Piotr Kaczor committed 2013-07-05 08:05:51 +02:00
1 parent 8a7edf3668
commit 54b882e936
1 file changed
+2
+2
View File
@@ -487,6 +487,8 @@ class PSCleaner extends Module
foreach ($tables as $table) foreach ($tables as $table)
$db->execute('TRUNCATE TABLE `'._DB_PREFIX_.bqSQL($table).'`'); $db->execute('TRUNCATE TABLE `'._DB_PREFIX_.bqSQL($table).'`');
$db->execute('DELETE FROM `'._DB_PREFIX_.'address` WHERE id_customer > 0'); $db->execute('DELETE FROM `'._DB_PREFIX_.'address` WHERE id_customer > 0');
$db->execute('UPDATE `'._DB_PREFIX_.'employee` SET `id_last_order` = 0,`id_last_customer_message` = 0,`id_last_customer` = 0');
break; break;
} }
$this->clearAllCaches(); $this->clearAllCaches();