Jump to content

to Database cleaner


croc

Recommended Posts

Hello All,

 

could somebody tell me who has experience with database cleaner module by PS 1.6 , if after removing of categories will be removed also root and home category or of these two will stay in database.

 

Thanks.

Link to comment
Share on other sites

hello

module will not remove home and root category

$db->execute('DELETE FROM `'._DB_PREFIX_.'category` WHERE id_category NOT IN ('.implode(',', array_map('intval', $id_home)).', '.implode(',', array_map('intval', $id_root)).')');
  • Like 1
Link to comment
Share on other sites

 

hello

module will not remove home and root category

$db->execute('DELETE FROM `'._DB_PREFIX_.'category` WHERE id_category NOT IN ('.implode(',', array_map('intval', $id_home)).', '.implode(',', array_map('intval', $id_root)).')');

 

Thanks for info.

Link to comment
Share on other sites

×
×
  • Create New...