Magento Sales Flat Quote clean-up Query
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Fit the Number of interval days to your customer requirements. | |
#for Magento 1.X CE | |
DELETE FROM sales_flat_quote WHERE updated_at < DATE_SUB(Now(),INTERVAL 60 DAY); | |
#for Magento 1.X EE | |
DELETE FROM sales_flat_quote WHERE updated_at < DATE_SUB(Now(),INTERVAL 60 DAY); | |
DELETE FROM enterprise_customer_sales_flat_quote WHERE updated_at < DATE_SUB(Now(),INTERVAL 60 DAY); | |
#alternative use https://github.com/fbrnc/Aoe_QuoteCleaner |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment