Create a library that contains an uinstall block with a SQL file.
Install the library and then uninstall it.
The SQL file defined in the uninstall block should be executed.
The SQL Script is not executed.
Joomla 3.5
Viewing libraries/cms/installer/adapter/component.php, JInstallerAdapterComponent.uninstall() contains the block:
try
{
$this->triggerManifestScript('uninstall');
} catch (RuntimeException $e){
// Ignore errors for now
}
A corresponding block is not present in library.php JInstallerAdapterLibrary.uninstall()
if this is deemed a NOTFIX or WONTFIX, then this page:
https://docs.joomla.org/Manifest_files
should be modified to explicitly reflect that uninstall scripts are not supported for library extensions.
Status | New | ⇒ | Confirmed |
Status | Confirmed | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-05-25 02:10:54 |
Closed_By | ⇒ | mbabker |
Will track this in #6015 (technically it's two different issues but the long and short of it is it all boils down to things not running standardized paths at the moment).