Skip to content

Commit

Permalink
refactor(install): drop dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Feb 14, 2022
1 parent e517e5b commit 395a0b8
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions install/upgrade_to_2.13.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ public function upgrade(Migration $migration) {
$this->addFormAnswerTitle();
$this->defaultValuesForTargets();
$this->migrateItemtypeInQuestion();
// $this->fixInconsistency();
$this->addTargetValidationSetting();
$this->addFormVisibility();
$this->addDashboardVisibility();
Expand Down Expand Up @@ -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']);
Expand Down

0 comments on commit 395a0b8

Please sign in to comment.