mirror of
https://github.com/pluginsGLPI/example.git
synced 2026-07-11 20:38:55 +02:00
Clean plugin uninstall residual data (#127)
* Clean plugin uninstall residual data * delete changelog
This commit is contained in:
@@ -619,7 +619,8 @@ function plugin_example_uninstall()
|
||||
global $DB;
|
||||
|
||||
$config = new Config();
|
||||
$config->deleteConfigurationValues('plugin:Example', ['configuration' => false]);
|
||||
$my_config = array_keys(Config::getConfigurationValues('plugin:Example'));
|
||||
$config->deleteConfigurationValues('plugin:Example', $my_config);
|
||||
|
||||
ProfileRight::deleteProfileRights([Example::$rightname]);
|
||||
|
||||
@@ -655,6 +656,10 @@ function plugin_example_uninstall()
|
||||
$query = 'DROP TABLE `glpi_plugin_example_items_devicecameras`;';
|
||||
$DB->doQuery($query);
|
||||
}
|
||||
if ($DB->tableExists('glpi_plugin_example_examples')) {
|
||||
$query = 'DROP TABLE `glpi_plugin_example_examples`;';
|
||||
$DB->doQuery($query);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user