From 395a0b8fc33eb062b6b1573a667ae00544aa332a Mon Sep 17 00:00:00 2001 From: Thierry Bugier Date: Thu, 3 Feb 2022 14:38:01 +0100 Subject: [PATCH] refactor(install): drop dead code --- install/upgrade_to_2.13.php | 7 ------- 1 file changed, 7 deletions(-) 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']);