uninstallDB($xmlFile) ?

Permalink
Packages have the function Package::installDB($xmlFile), where $xmlFile is the path to an XML file that you want to install/refresh.

To create an uninstall function, shouldn't it be as simple as changing
$sql = $schema->ParseSchema($xmlFile);
to
$sql = $schema->RemoveSchema($xmlFile);
I've done this but it doesn't seem to work.

ijessup
 
ijessup replied on at Permalink Reply
ijessup
Found the issue:
// Fail if XSLT extension is not available
It seems you need a PHP extension in order to use the RemoveSchema function.