Skip to content

Commit

Permalink
fix(textareafield): paste images reachs limit of field in DB
Browse files Browse the repository at this point in the history
upgraded the field to longtext
  • Loading branch information
btry committed Aug 22, 2019
1 parent 1cb94ad commit 84e9c68
Show file tree
Hide file tree
Showing 2 changed files with 4 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 @@ -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`)
Expand Down
3 changes: 3 additions & 0 deletions install/upgrade_to_2.9.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

/**
Expand Down

0 comments on commit 84e9c68

Please sign in to comment.