Skip to content

Commit

Permalink
fix(install): update relation
Browse files Browse the repository at this point in the history
when upgrading to 2.7.0 the plugin needs to update relation between form answers and changes

Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Jan 3, 2019
1 parent 50fa811 commit 09c0101
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions install/upgrade_to_2.7.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@ public function upgrade(Migration $migration) {
'itemtype' => 'PluginFormcreatorForm_Answer'
]
);
$DB->update(
'glpi_changes_items', [
'itemtype' => 'PluginFormcreatorFormAnswer',
], [
'itemtype' => 'PluginFormcreatorForm_Answer'
]
);
$DB->update(
'glpi_notifications', [
'itemtype' => 'PluginFormcreatorFormAnswer',
Expand Down

0 comments on commit 09c0101

Please sign in to comment.