Skip to content

Commit

Permalink
fix(answer): missing default value in schema
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <[email protected]>
  • Loading branch information
btry committed Oct 21, 2021
1 parent 1b180d2 commit 195ef44
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions install/upgrade_to_2.9.php
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,9 @@ public function upgrade(Migration $migration) {

$table = 'glpi_plugin_formcreator_answers';
$migration->changeField($table, 'answer', 'answer', 'longtext');
$migration->changeField($table, 'plugin_formcreator_formanswers_id', 'plugin_formcreator_formanswers_id', 'integer', ['value' => '0']);
$migration->changeField($table, 'plugin_formcreator_questions_id', 'plugin_formcreator_questions_id', 'integer', ['value' => '0']);

$table = 'glpi_plugin_formcreator_issues';
$migration->changeField($table, 'comment', 'comment', 'longtext');

Expand Down

0 comments on commit 195ef44

Please sign in to comment.