I have created table then I deleted it and then after changing in my sql query, my module is not creating table. What to do?


Find in core_resource table value with name of your module, then delete this value. Better create dump before any actions.


Every time magento check module version in core_resource If version doesn't match, then Magento check SQL script in the SQL - setup folder

If you delete table from database manually, then you need to change value or delete value for your module in core_resource table and clean cache

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.