mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-06-28 06:58:43 +02:00
DROP TABLE statement typo
didn't matched the table created in install hook
This commit is contained in:
8
hook.php
8
hook.php
@ -586,9 +586,9 @@ function plugin_example_uninstall() {
|
||||
$DB->query($query) or die("error deleting glpi_plugin_example");
|
||||
}
|
||||
// Current version tables
|
||||
if (TableExists("glpi_plugin_example_example")) {
|
||||
$query = "DROP TABLE `glpi_plugin_example_example`";
|
||||
$DB->query($query) or die("error deleting glpi_plugin_example_example");
|
||||
if (TableExists("glpi_plugin_example_examples")) {
|
||||
$query = "DROP TABLE `glpi_plugin_example_examples`";
|
||||
$DB->query($query) or die("error deleting glpi_plugin_example_examples");
|
||||
}
|
||||
if (TableExists("glpi_plugin_example_dropdowns")) {
|
||||
$query = "DROP TABLE `glpi_plugin_example_dropdowns`;";
|
||||
@ -672,4 +672,4 @@ function plugin_example_Status($param) {
|
||||
echo "\n";
|
||||
return $param;
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
Reference in New Issue
Block a user