Magento 2 Install Script – Fix InstallData.php Not Running Again After First Time

data-installinstall-scriptmagento2setup-upgrade

I have created my custom module to add more attributes for customers.

The InstallData.php worked perfectly for the first time and added all the attributes I wanted.

However, I need to add more attributes. I updated my InstallData.php and run php bin/magento setup:upgrade, but the new attributes are not added.

What did I miss in this problem?

Best Answer

Delete your module from setup_module table and run php bin/magento setup:upgrade

Related Topic