卸载Magento自定义扩展及其数据库 [英] Uninstall Magento custom extension with its database

查看:55
本文介绍了卸载Magento自定义扩展及其数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了扩展名并创建了扩展名zip文件,以便可以通过Magento Connect安装它.当我使用Magento Connect卸载自定义扩展程序时,它只会删除我的扩展程序文件和文件夹,而不会删除该扩展程序的数据库表.

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.

我也想删除扩展数据库表.我希望不使用phpmyadmin来自动完成所有过程,而是手动进行或编写任何升级脚本,因为我正在使用自己的扩展名,以便他们不会遇到任何问题.

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.

推荐答案

遗憾的是,没有回滚或卸载脚本,因为您可能会在其他框架上找到这些脚本.

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.

这篇关于卸载Magento自定义扩展及其数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆