Skip to content

Commit

Permalink
Fix antiviruses migration replay
Browse files Browse the repository at this point in the history
  • Loading branch information
cedric-anne authored and trasher committed Jan 26, 2024
1 parent bcf9db1 commit 68d6c94
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion install/migrations/update_10.0.x_to_10.1.0/antivirus.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@

$default_key_sign = DBConnection::getDefaultPrimaryKeySignOption();

$migration->renameTable('glpi_computerantiviruses', 'glpi_itemantiviruses');
if ($DB->tableExists('glpi_computerantiviruses')) {
$migration->renameTable('glpi_computerantiviruses', 'glpi_itemantiviruses');
}

if (!$DB->fieldExists('glpi_itemantiviruses', 'itemtype')) {
$migration->addField(
Expand Down

0 comments on commit 68d6c94

Please sign in to comment.