DROP TABLE statement typo

didn't matched the table created in install hook
This commit is contained in:
Nelson Zamith 2015-10-23 11:43:32 +02:00
parent 9103cb29d8
commit 8c7086ac21

View File

@ -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;
}
?>
?>