Last active
August 29, 2015 14:06
-
-
Save dzungtran/7c1906a8361f312006ed to your computer and use it in GitHub Desktop.
Truncate tables in magento
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
SET foreign_key_checks = 0; | |
TRUNCATE dataflow_batch_export; | |
TRUNCATE dataflow_batch_import; | |
TRUNCATE log_customer; | |
TRUNCATE log_quote; | |
TRUNCATE log_summary; | |
TRUNCATE log_summary_type; | |
TRUNCATE log_url; | |
TRUNCATE log_url_info; | |
TRUNCATE log_visitor; | |
TRUNCATE log_visitor_info; | |
TRUNCATE log_visitor_online; | |
TRUNCATE index_process_event; | |
TRUNCATE index_event; | |
TRUNCATE report_event; | |
TRUNCATE report_viewed_product_index; | |
TRUNCATE report_compared_product_index; | |
TRUNCATE catalog_compare_item; | |
-- TRUNCATE catalogindex_aggregation; | |
-- TRUNCATE catalogindex_aggregation_tag; | |
-- TRUNCATE catalogindex_aggregation_to_tag; | |
SET foreign_key_checks = 1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment