Clean plugin uninstall residual data (#127)

* Clean plugin uninstall residual data

* delete changelog
This commit is contained in:
Romain B.
2026-06-04 09:20:43 +02:00
committed by GitHub
parent 611f8b6154
commit 64e2ac52a5
2 changed files with 6 additions and 13 deletions
-12
View File
@@ -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
+6 -1
View File
@@ -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;
}