Easiest way to Re Run Magento Module setup

As a developer we guys needs to create custom modules as per our project requirement.To do this we can use ModuleCreator extenstion of magento.

Let we have already created and installed a custom module with our project and after some time due to any change in flow if we need to make a new field in our modules database table then the easiest way is to modify your modules setup file which is available at


here we will simply modify the sql query into the install file . Now we have to re-run magento setup for this module so that we can get our database table updated.

To Re-Run magento setup we will follow the easiest way

Step 1: Delete your module table (take backup if you have some data in it)

Step 2: Delete your modules entry from core_resource table

Step 3: Now refresh the browser with the URL that will call this module.As soon as you refresh the browser magento will automatically create the new database table and a new entry in core_resource table.

Now enjoy….

The following two tabs change content below.

Chandra Shekhar

GCP Architect
Chandra Shekhar Pandey is Google certified Cloud engineer, I am Magento2 Trained developer. Having huge experience in designing cloud solution. I have around 12 years of experience with world enterprise IT companies and fortune 500 clients. During my architecture design I am always caring about high availability, fast performance and resilient system. From the programmer background I have huge experience in LAMP stack as well. Throughout my carrier I have worked on Retail, E-Learning, Video Conferencing and social media domain. The motive of creating cutehits was just to share the knowledge/solutions I get to know during my day to day life so that if possible I can help someone for same problems/solutions. CuteHits.com is a really a very effort for sharing knowledge to rest of the world. For any query/suggestion about same you can contact me on below details:- Email: shekharmca2005 at gmail.com Phone: +91-9560201363

Latest posts by Chandra Shekhar (see all)

You may also like...