Merge pull request #547 from PiotrKaczor/patch-1
[*] MO : pscleaner reset employees notyfications
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user