Last active
August 29, 2015 14:21
-
-
Save jrodriguez-ifuelinteractive/dfdeb501a1975e9e4659 to your computer and use it in GitHub Desktop.
Magento Delete Customers
This file contains hidden or 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; | |
| -- reset customers | |
| TRUNCATE `customer_address_entity`; | |
| TRUNCATE `customer_address_entity_datetime`; | |
| TRUNCATE `customer_address_entity_decimal`; | |
| TRUNCATE `customer_address_entity_int`; | |
| TRUNCATE `customer_address_entity_text`; | |
| TRUNCATE `customer_address_entity_varchar`; | |
| TRUNCATE `customer_entity`; | |
| TRUNCATE `customer_entity_datetime`; | |
| TRUNCATE `customer_entity_decimal`; | |
| TRUNCATE `customer_entity_int`; | |
| TRUNCATE `customer_entity_text`; | |
| TRUNCATE `customer_entity_varchar`; | |
| TRUNCATE `log_customer`; | |
| TRUNCATE `log_visitor`; | |
| TRUNCATE `log_visitor_info`; | |
| ALTER TABLE `customer_address_entity` AUTO_INCREMENT=1; | |
| ALTER TABLE `customer_address_entity_datetime` AUTO_INCREMENT=1; | |
| ALTER TABLE `customer_address_entity_decimal` AUTO_INCREMENT=1; | |
| ALTER TABLE `customer_address_entity_int` AUTO_INCREMENT=1; | |
| ALTER TABLE `customer_address_entity_text` AUTO_INCREMENT=1; | |
| ALTER TABLE `customer_address_entity_varchar` AUTO_INCREMENT=1; | |
| ALTER TABLE `customer_entity` AUTO_INCREMENT=1; | |
| ALTER TABLE `customer_entity_datetime` AUTO_INCREMENT=1; | |
| ALTER TABLE `customer_entity_decimal` AUTO_INCREMENT=1; | |
| ALTER TABLE `customer_entity_int` AUTO_INCREMENT=1; | |
| ALTER TABLE `customer_entity_text` AUTO_INCREMENT=1; | |
| ALTER TABLE `customer_entity_varchar` AUTO_INCREMENT=1; | |
| ALTER TABLE `log_customer` AUTO_INCREMENT=1; | |
| ALTER TABLE `log_visitor` AUTO_INCREMENT=1; | |
| ALTER TABLE `log_visitor_info` AUTO_INCREMENT=1; | |
| SET FOREIGN_KEY_CHECKS=1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment