Skip to content

Commit

Permalink
Merge branch 'bugfix/22440_increase_description_size' into support/2.…
Browse files Browse the repository at this point in the history
…12.0
  • Loading branch information
btry committed Aug 2, 2021
2 parents 8bb51be + c57cb14 commit af83987
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion install/mysql/plugin_formcreator_empty.sql
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ CREATE TABLE IF NOT EXISTS `glpi_plugin_formcreator_questions` (
`show_empty` tinyint(1) NOT NULL DEFAULT '0',
`default_values` mediumtext,
`values` mediumtext,
`description` text NOT NULL,
`description` mediumtext,
`row` int(11) NOT NULL DEFAULT '0',
`col` int(11) NOT NULL DEFAULT '0',
`width` int(11) NOT NULL DEFAULT '0',
Expand Down
4 changes: 4 additions & 0 deletions install/upgrade_to_2.12.1.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,9 @@ public function upgrade(Migration $migration) {
'is_kb_separated' => ['>', 0],
]
);

// Inscrease description size
$table = 'glpi_plugin_formcreator_questions';
$this->migration->changeField($table, 'description', 'description', 'MEDIUMTEXT');
}
}

0 comments on commit af83987

Please sign in to comment.