简体   繁体   中英

How to reset Magento transactional emails ID?

I have tried already to truncate core_email_template, with no success. Even though I have deleted my previous transactional emails, as soon as I create a new one, the ID increments from my previous template. I want it to start over from ID=1.

Thank you!

Afaik, some MySQL versions don't properly reset auto-increment values when using

TRUNCATE table_name;

Alternatively you can try to reset it directly:

ALTER TABLE `core_email_template` AUTO_INCREMENT = 1;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM