Skip to content

Commit 5b81c4e

Browse files
committed
fix(install): missing column reorder on upgrade
Signed-off-by: Thierry Bugier <[email protected]>
1 parent 6b90673 commit 5b81c4e

File tree

2 files changed

+42
-1
lines changed

2 files changed

+42
-1
lines changed

install/install.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ class PluginFormcreatorInstall {
6161
'2.6.1' => '2.6.3',
6262
'2.6.3' => '2.7',
6363
'2.7' => '2.8',
64-
'2.8' => '2.9',
64+
'2.8' => '2.8.1',
65+
'2.8.1' => '2.9',
6566
];
6667

6768
/**

install/upgrade_to_2.8.1.php

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?php
2+
/**
3+
* ---------------------------------------------------------------------
4+
* Formcreator is a plugin which allows creation of custom forms of
5+
* easy access.
6+
* ---------------------------------------------------------------------
7+
* LICENSE
8+
*
9+
* This file is part of Formcreator.
10+
*
11+
* Formcreator is free software; you can redistribute it and/or modify
12+
* it under the terms of the GNU General Public License as published by
13+
* the Free Software Foundation; either version 2 of the License, or
14+
* (at your option) any later version.
15+
*
16+
* Formcreator is distributed in the hope that it will be useful,
17+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19+
* GNU General Public License for more details.
20+
*
21+
* You should have received a copy of the GNU General Public License
22+
* along with Formcreator. If not, see <http://www.gnu.org/licenses/>.
23+
* ---------------------------------------------------------------------
24+
*
25+
* @copyright Copyright © 2011 - 2019 Teclib'
26+
* @license http://www.gnu.org/licenses/gpl.txt GPLv3+
27+
* @link https://github.com/pluginsGLPI/formcreator/
28+
* @link https://pluginsglpi.github.io/formcreator/
29+
* @link http://plugins.glpi-project.org/#/plugin/formcreator
30+
* ---------------------------------------------------------------------
31+
*/
32+
class PluginFormcreatorUpgradeTo2_8_1 {
33+
/**
34+
* @param Migration $migration
35+
*/
36+
public function upgrade(Migration $migration) {
37+
$table = 'glpi_plugin_formcreator_issues';
38+
$migration->changeField($table, 'name', 'name', 'string', ['after' => 'id', 'value' => '']);
39+
}
40+
}

0 commit comments

Comments
 (0)