From 08bd2f7e1b7a50e2c3725cd70e5afc2d6eb57b58 Mon Sep 17 00:00:00 2001 From: Rom1-B Date: Tue, 16 Dec 2025 14:13:50 +0100 Subject: [PATCH] Fix: Table glpi_assets_assets cannot be renamed as table... --- inc/type.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/type.class.php b/inc/type.class.php index 0c4f67d..c5f38a9 100644 --- a/inc/type.class.php +++ b/inc/type.class.php @@ -846,7 +846,7 @@ private static function updateNameAndItemtype( /** @var DBmysql $DB */ global $DB; - if ($old_itemtype != $new_itemtype) { + if ($old_itemtype != $new_itemtype && !str_starts_with($old_itemtype, 'Glpi\\CustomAsset\\')) { $migration->renameItemtype($old_itemtype, $new_itemtype); $migration->executeMigration(); // Execute migration to flush updates on tables that may be renamed }