Custom install/uninstall PHP and SQL files for Plugins? - Joomla! Forum - community, help and support
i know can have custom install/uninstall php , sql files components. can plugins?
this not typical job plugin - changing database content.
however, it's easy achieve using
but don't know way delete table when uninstalling plugin/module!
however, it's easy achieve using
code: select all
$database =& jfactory::getdbo();
$query = "create table if not exists `example` ( `id` int, `data` varchar(100) );"
$database->setquery($query);
$result = $database->query();;
but don't know way delete table when uninstalling plugin/module!
Comments
Post a Comment