Skip to content

Commit

Permalink
fix migration update
Browse files Browse the repository at this point in the history
  • Loading branch information
Rom1-B committed Feb 28, 2024
1 parent 1828e1b commit 6d4768f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions inc/order.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -2549,8 +2549,10 @@ public static function install(Migration $migration)

//1.2.0
$domigration_itemtypes = false;
$migration->renameTable("glpi_plugin_order", $table);
$domigration_itemtypes = true;
if ($DB->tableExists('glpi_plugin_order')) {
$migration->renameTable("glpi_plugin_order", $table);
$domigration_itemtypes = true;
}

$migration->changeField($table, "ID", "id", "int {$default_key_sign} NOT NULL AUTO_INCREMENT");
$migration->changeField(
Expand Down

0 comments on commit 6d4768f

Please sign in to comment.