Skip to content

Commit

Permalink
fix(form): language column too short
Browse files Browse the repository at this point in the history
fix #2285

Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Jun 30, 2021
1 parent 67a4092 commit 3f56044
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 @@ -51,7 +51,7 @@ CREATE TABLE IF NOT EXISTS `glpi_plugin_formcreator_forms` (
`content` longtext,
`plugin_formcreator_categories_id` int(11) unsigned NOT NULL DEFAULT '0',
`is_active` tinyint(1) NOT NULL DEFAULT '0',
`language` varchar(5) NOT NULL,
`language` varchar(255) NOT NULL,
`helpdesk_home` tinyint(1) NOT NULL DEFAULT '0',
`is_deleted` tinyint(1) NOT NULL DEFAULT '0',
`validation_required` tinyint(1) NOT NULL DEFAULT '0',
Expand Down
3 changes: 3 additions & 0 deletions install/upgrade_to_2.12.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ public function upgrade(Migration $migration) {
$this->migration->addField($table, 'header', 'text', ['after' => 'is_header_visible']);

$this->migrateReferenceEntity();

$table = 'glpi_plugin_formcreator_forms';
$this->migration->changeField($table, 'language', 'language', 'string', ['after' => 'is_active']);
}

/**
Expand Down

0 comments on commit 3f56044

Please sign in to comment.