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:
@@ -1,12 +0,0 @@
|
||||
# Change Log
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
||||
and this project adheres to [Semantic Versioning](http://semver.org/).
|
||||
|
||||
## [0.1.0] - 2025-09-30
|
||||
|
||||
### Added
|
||||
|
||||
- GLPI 11 compatibility
|
||||
@@ -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