Uninstall Magento custom extension with its database

时光毁灭记忆、已成空白 提交于 2019-12-02 20:06:51

问题


I have created an extension and created zip file of extension so that I can install it through Magento Connect. When I uninstall my custom extension using Magento Connect it will only delete my extension files and folders but database tables of my extension are not deleted.

I also want to remove my database table of extension. I want all process to be done automatically not by using phpmyadmin and do it manually or writing any upgrade script because What I want when my extension is being used by user so they will not face any issue.


回答1:


Sadly, there is no rollback or uninstall script as you may find those on other framework.

The install and data folders of modules are only meant to bump version up but there is no way provided by the framework to bump it down or in your case remove it totally.



来源:https://stackoverflow.com/questions/34657791/uninstall-magento-custom-extension-with-its-database

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!