Skip to content

Commit 91baefb

Browse files
committed
fix(install): workaround alter table failure
1 parent 3a8d3ea commit 91baefb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

install/upgrade_to_2.13.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,10 @@ public function addDefaultFormListMode() {
434434
public function fixissues() {
435435
$table = 'glpi_plugin_formcreator_issues';
436436

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

0 commit comments

Comments
 (0)