Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion inc/profile.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ public static function uninstall()
{
/** @var DBmysql $DB */
global $DB;
$DB->dropTable('glpi_profilerights');
$query = "DELETE FROM `glpi_profilerights`
WHERE `name` LIKE '%plugin_genericobject%'";
$DB->doQuery($query);
}
}
4 changes: 3 additions & 1 deletion inc/type.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,8 @@ public static function uninstall()
/** @var DBmysql $DB */
global $DB;

$migration = new Migration(PLUGIN_GENERICOBJECT_VERSION);

//Delete references to PluginGenericobjectType in the following tables
self::deleteItemtypeReferencesInGLPI(self::class);

Expand All @@ -665,7 +667,7 @@ public static function uninstall()
}

//Delete table
$DB->dropTable('glpi_plugin_genericobject_types', true);
$migration->dropTable('glpi_plugin_genericobject_types');
}


Expand Down
3 changes: 2 additions & 1 deletion inc/typefamily.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ public static function uninstall()
/** @var DBmysql $DB */
global $DB;

$migration = new Migration(PLUGIN_GENERICOBJECT_VERSION);
$table = getTableForItemType(self::class);
$DB->dropTable($table, true);
$migration->dropTable($table);
}
}
2 changes: 1 addition & 1 deletion setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ function plugin_init_genericobject()
function plugin_version_genericobject()
{
return [
'name' => __s("Objects management (Migration Only)", "genericobject"),
'name' => __s("Generic Objects End-of-Life Updater", "genericobject"),
'version' => PLUGIN_GENERICOBJECT_VERSION,
'author' => "<a href=\"mailto:contact@teclib.com\">Teclib'</a> & siprossii",
'homepage' => 'https://github.com/pluginsGLPI/genericobject',
Expand Down