diff --git a/install/mysql/plugin_formcreator_empty.sql b/install/mysql/plugin_formcreator_empty.sql index 98da993c2..6493c634a 100644 --- a/install/mysql/plugin_formcreator_empty.sql +++ b/install/mysql/plugin_formcreator_empty.sql @@ -5,7 +5,7 @@ CREATE TABLE IF NOT EXISTS `glpi_plugin_formcreator_answers` ( `id` int(11) NOT NULL AUTO_INCREMENT, `plugin_formcreator_formanswers_id` int(11) NOT NULL DEFAULT '0', `plugin_formcreator_questions_id` int(11) NOT NULL DEFAULT '0', - `answer` text, + `answer` longtext, PRIMARY KEY (`id`), INDEX `plugin_formcreator_formanswers_id` (`plugin_formcreator_formanswers_id`), INDEX `plugin_formcreator_questions_id` (`plugin_formcreator_questions_id`) diff --git a/install/upgrade_to_2.9.php b/install/upgrade_to_2.9.php index c907ea49c..2be10b7ed 100644 --- a/install/upgrade_to_2.9.php +++ b/install/upgrade_to_2.9.php @@ -300,6 +300,9 @@ public function upgrade(Migration $migration) { $migration->addField($table, 'icon', 'string', ['after' => 'is_recursive']); $migration->addField($table, 'icon_color', 'string', ['after' => 'icon']); $migration->addField($table, 'background_color', 'string', ['after' => 'icon']); + + $table = 'glpi_plugin_formcreator_answers'; + $migration->changeField($table, 'answer', 'answer', 'longtext'); } /**