Skip to content

Commit 104f8fd

Browse files
committed
fix(install): give more instructions to support the upgrade process
1 parent 0a9a43d commit 104f8fd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

install/install.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,12 @@ public function upgrade(Migration $migration, $args = []): bool {
185185
'bin/console glpi:plugin:install formcreator'
186186
) . PHP_EOL;
187187
echo $log . PHP_EOL;
188+
echo 'Some tables have an incorrect schema. Please review them in the above log.' . PHP_EOL;
189+
echo 'Some of those errors are handled in the upgrade step from 2.12.5 to 2.13.0. ' . PHP_EOL;
190+
echo 'Please _take a snapshot of your complete database_, then try to run the upgrade with the following command: ' . PHP_EOL;
191+
echo 'bin/console glpi:plugin:install formcreator -f -p skip-db-check' . PHP_EOL;
192+
echo 'The upgrade procedure will try to solve known errors before upgrading the tables to 2.13.0 version.' . PHP_EOL;
193+
echo 'Finally a check of the tables will be executed to report unhandled inconsistencies.' . PHP_EOL;
188194
}
189195
return false;
190196
}

0 commit comments

Comments
 (0)