I want to change the name of my new module and whenever I run php bin/magento setup/upgrade it reverts back to my old name. I've changed the name everywhere in my code to my knowledge and it still reverts back.
Any help would be appreciated.
Solved! Go to Solution.
make sure you rename module name each module like mainly registation.php
then remove module name from config.php and then remove from setup_module and try setup:upgrade command and check it
Hope it will help you. if works then mark as solution.
I understand the problem you are facing !
As you mention that you have change the Module Name from everywhere - then you also need to change the Name of NameSpace as well , Meaning your main directory Name.
So rename your VendorName and ModuleName with New name of the module
Also you need to change this moduleName from etc/module.xml file and registration.php file as well
Hope it helps !