Skip to content

Commit cbbb67a

Browse files
authored
Fix: Table glpi_assets_assets cannot be renamed as table... (#468)
1 parent b9691d9 commit cbbb67a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/type.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ private static function updateNameAndItemtype(
846846
/** @var DBmysql $DB */
847847
global $DB;
848848

849-
if ($old_itemtype != $new_itemtype) {
849+
if ($old_itemtype != $new_itemtype && !str_starts_with($old_itemtype, 'Glpi\\CustomAsset\\')) {
850850
$migration->renameItemtype($old_itemtype, $new_itemtype);
851851
$migration->executeMigration(); // Execute migration to flush updates on tables that may be renamed
852852
}

0 commit comments

Comments
 (0)