Skip to content

Instantly share code, notes, and snippets.

View AlexNDRmac's full-sized avatar
🇺🇦

Oleksandr Andriiako AlexNDRmac

🇺🇦
View GitHub Profile
@AlexNDRmac
AlexNDRmac / clean-prestashop-db.sql
Created October 12, 2017 19:38 — forked from julienbourdeau/clean-prestashop-db.sql
Clean PrestaShop database - Drop old and unless data
# Delete all logs
TRUNCATE ps_log;
# Delete old connection data (only used for stats)
# change 2016-02-01 00:00:00 according to you needs
DELETE c, cs
FROM ps_connections c
LEFT JOIN ps_connections_source cs ON (c.id_connections = cs.id_connections)
WHERE c.date_add < '2016-02-01 00:00:00';