Skip to content

Commit

Permalink
fix(install): workaround alter table failure
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Jul 18, 2022
1 parent 3a8d3ea commit 91baefb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions install/upgrade_to_2.13.php
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,10 @@ public function addDefaultFormListMode() {
public function fixissues() {
$table = 'glpi_plugin_formcreator_issues';

// If a row contains a string of 255 chars, mysql fails to convert the colomn from varchar(255) to varchar(255)
// $this->migration->changeField($table, 'name', 'name', 'string', ['after' => 'id', 'nodefault' => true]);
$this->migration->changeField($table, 'name', 'name', 'text', ['after' => 'id', 'nodefault' => true]);
$this->migration->migrationOneTable($table);
$this->migration->changeField($table, 'name', 'name', 'string', ['after' => 'id', 'nodefault' => true]);
}

Expand Down

0 comments on commit 91baefb

Please sign in to comment.