I messed up with a module, how can I reset it’s tables (not empty, but reset) like it is fresh installed? I don’t wont to reinstall the module, I just want to reset the data in database.
Magento Version: 1.6.0
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To reset a module data, you have to delete it’s resource related entry, this way magento will rerun setup script again.
Example:
Let’s say you want to reset the newsletter module data.
If you check
You can find
This means the resource name is newsletter_setup
Log in to your database, find the table core_resource, find the entry where the
code = newsletter_setup delete it.
Now if you refresh the page, Magento will run the setup script again, in this case, it is