5

In my Module have a table script inside the InstallSchema class. When I ran below commands it's not installing.

commands

  1. php bin/magento cache:clean
  2. php bin/magento setup:upgrade
  3. php bin/magento setup:db-schema:upgrade

But I have created the same code as another new module and I have executed above commands it's installed.

Is there any table to clear the module version in Magento 1 like (core_resource)?

Please suggest me

15

In Magento 2 version information is stored on setup_module table. So you can remove your module and re run the commands it will work.

  • Timely help. +1, is it the standard procedure to install the script? Or a shortcut in case of not installing after upgrade? – Butterfly Dec 13 '18 at 13:46
  • @Butterfly if you specify versions magento will install automatically when run the upgrade command other wise need to remove module from setup_module table and run the upgrade command. – Manoj Kumar Dec 14 '18 at 6:25
0

Some time there may an entry for you module in

 app/etc/config.php 

with value 0. And if you run the command

 bin/magento setup:upgrade

then it will not upgrade your plugin. Change the vaue to 1 and run the command again.

0

Please check entry in setup_module table.and also check InstallSchema class name and namespace according to your module.delete entry from setup_module and run command php bin/magento setup:upgrade

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.