Skip to content

Commit 2cecff7

Browse files
committed
fix(install): move columns in somez tables
GLPI does not handles FIRST or AFTER SQL keywords for Migration::changeField() Need a workaround Signed-off-by: Thierry Bugier <[email protected]>
1 parent d50c7f6 commit 2cecff7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install/upgrade_to_2.7.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ public function upgrade(Migration $migration) {
294294
'glpi_plugin_formcreator_issues',
295295
];
296296
foreach ($tables as $table) {
297-
$migration->changeField($table, 'name', 'name', 'string', ['after' => 'id']);
297+
$migration->changeField($table, 'name', 'name', 'VARCHAR(255) NOT NULL DEFAULT \'\' AFTER `id`');
298298
}
299299

300300
//remove html entities in forms

0 commit comments

Comments
 (0)