diff --git a/install/upgrade_to_2.13.php b/install/upgrade_to_2.13.php index 61e1f06a4..8d55a6bc1 100644 --- a/install/upgrade_to_2.13.php +++ b/install/upgrade_to_2.13.php @@ -41,7 +41,6 @@ public function upgrade(Migration $migration) { $this->addFormAnswerTitle(); $this->defaultValuesForTargets(); $this->migrateItemtypeInQuestion(); - // $this->fixInconsistency(); $this->addTargetValidationSetting(); $this->addFormVisibility(); $this->addDashboardVisibility(); @@ -113,12 +112,6 @@ public function migrateItemtypeInQuestion() { } } - protected function fixInconsistency() { - $table = 'glpi_plugin_formcreator_answers'; - $this->migration->changeField($table, 'plugin_formcreator_formanswers_id', 'plugin_formcreator_formanswers_id', 'integer', ['value' => '0']); - $this->migration->changeField($table, 'plugin_formcreator_questions_id', 'plugin_formcreator_questions_id', 'integer', ['value' => '0']); - } - protected function addTargetValidationSetting() { $table = 'glpi_plugin_formcreator_targetchanges'; $this->migration->addField($table, 'commonitil_validation_rule', 'integer', ['value' => '1', 'after' => 'category_question']);