Skip to content

Commit

Permalink
fix(install): upgrade to 2.5.0 fails on categories
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Feb 13, 2020
1 parent b571115 commit 918e46f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install/upgrade_to_2.5.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ function updateCategory_2_5(Migration $migration) {
$migration->addKey('glpi_plugin_formcreator_categories', 'knowbaseitemcategories_id');
$migration->addKey('glpi_plugin_formcreator_categories', 'plugin_formcreator_categories_id');
$migration->migrationOneTable('glpi_plugin_formcreator_categories');
$query = "UPDATE `glpi_plugin_formcreator_categories` SET `completename` = `name` WHERE `completename` = ''";
$query = "UPDATE `glpi_plugin_formcreator_categories` SET `completename` = `name` WHERE `completename` IS NULL";
$DB->query($query);
}
}
Expand Down

0 comments on commit 918e46f

Please sign in to comment.