Skip to content

Commit

Permalink
DBmysql::doQueryOrDie() is not yet available
Browse files Browse the repository at this point in the history
fixes #436
  • Loading branch information
cedric-anne committed Nov 3, 2023
1 parent 726103e commit 718428b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions install/update.native.php
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ function pluginGlpiinventoryUpdateNative($current_version, $migrationname = 'Mig

$migration->displayMessage("Use core printer logs");
if ($DB->tableExists('glpi_plugin_glpiinventory_printerlogs')) {
$DB->doQueryOrDie(
$DB->queryOrDie(
"INSERT IGNORE INTO `glpi_printerlogs` (
`printers_id`,
`date`,
Expand Down Expand Up @@ -430,7 +430,7 @@ function pluginGlpiinventoryUpdateNative($current_version, $migrationname = 'Mig

$migration->displayMessage("Use core networkports logs");
if ($DB->tableExists('glpi_plugin_glpiinventory_networkportconnectionlogs')) {
$DB->doQueryOrDie(
$DB->queryOrDie(
"INSERT IGNORE INTO `glpi_networkportconnectionlogs` (
`date`,
`connected`,
Expand Down Expand Up @@ -584,7 +584,7 @@ function pluginGlpiinventoryUpdateNative($current_version, $migrationname = 'Mig

if ($DB->tableExists('glpi_plugin_glpiinventory_rulematchedlogs')) {
// agents must be migrated before that one
$DB->doQueryOrDie(
$DB->queryOrDie(
"INSERT IGNORE INTO `glpi_rulematchedlogs` (
`date`,
`items_id`,
Expand All @@ -608,7 +608,7 @@ function pluginGlpiinventoryUpdateNative($current_version, $migrationname = 'Mig
$migration->displayMessage("Use core remote management");
if ($DB->tableExists('glpi_plugin_glpiinventory_computerremotemanagements')) {
// agents must be migrated before that one
$DB->doQueryOrDie(
$DB->queryOrDie(
"INSERT IGNORE INTO `glpi_items_remotemanagements` (
`itemtype`,
`items_id`,
Expand Down

0 comments on commit 718428b

Please sign in to comment.