Skip to content

Commit

Permalink
fix(install): convert all FK to unsigned
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Jul 18, 2022
1 parent 1fc3c9a commit 4ba5ed8
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions install/upgrade_to_2.13.php
Original file line number Diff line number Diff line change
Expand Up @@ -301,9 +301,18 @@ protected function migrateFkToUnsignedInt() {
$DB->queryOrDie("UPDATE `$table` SET `actor_value` = 0 WHERE `actor_value` IS NULL");

$tables = [
'glpi_plugin_formcreator_answers' => [
'plugin_formcreator_formanswers_id',
'plugin_formcreator_questions_id',
],
'glpi_plugin_formcreator_formanswers' => [
'plugin_formcreator_forms_id',
'requester_id',
'users_id_validator',
'groups_id_validator',
],
'glpi_plugin_formcreator_forms_languages' => [
'plugin_formcreator_forms_id',
],
'glpi_plugin_formcreator_forms_profiles' => [
'plugin_formcreator_forms_id',
Expand All @@ -313,9 +322,16 @@ protected function migrateFkToUnsignedInt() {
'plugin_formcreator_forms_id',
'items_id',
],
'glpi_plugin_formcreator_issues' => [
'users_id_recipient',
],
'glpi_plugin_formcreator_questions' => [
'plugin_formcreator_sections_id',
],
'glpi_plugin_formcreator_questiondependencies' => [
'plugin_formcreator_questions_id',
'plugin_formcreator_questions_id_2',
],
'glpi_plugin_formcreator_sections' => [
'plugin_formcreator_forms_id',
],
Expand Down

0 comments on commit 4ba5ed8

Please sign in to comment.