From e7c8d4b904a4a572749618126eaff3a7da0c1b45 Mon Sep 17 00:00:00 2001 From: Rom1-B <8530352+Rom1-B@users.noreply.github.com> Date: Thu, 4 Jun 2026 08:59:57 +0200 Subject: [PATCH 1/2] Clean plugin uninstall residual data --- hook.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hook.php b/hook.php index f6751d5..7e03f46 100644 --- a/hook.php +++ b/hook.php @@ -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; } From 88ac5a93d543acd2d3580abfe96ac790a29656fb Mon Sep 17 00:00:00 2001 From: Rom1-B <8530352+Rom1-B@users.noreply.github.com> Date: Thu, 4 Jun 2026 09:11:01 +0200 Subject: [PATCH 2/2] delete changelog --- CHANGELOG.md | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 4079509..0000000 --- a/CHANGELOG.md +++ /dev/null @@ -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