Pregunta

Is there a way to discard/revert the changes I made with InstallData/UpgradeData scripts without having to go to database and revert changes there manually?

I know there is Uninstall.php, but it only works if your module is a composer package.

¿Fue útil?

Solución

NO there is not (at least at the time I'm writing this).
The uninstall file, as you say, is only executed for composer installed packages.
For other modules you have to remove manually what you added via the install/update scripts.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a magento.stackexchange
scroll top