You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2022-07-04 08:23:53

vocaltech
Member
Registered: 2022-07-02
Posts: 5

update 9.5.7 --> 9.5.8 cli command

Hi, how to update using cli?

1) Download on the web server a fresh glpi version 9.5.8 folder.
2) cp -fr /ancien_config /www/glpiV958; cp -fr /ancien_files /www/glpiV958; cp -fr /ancien_marketplace /www/glpiV958; cp -fr /ancien_plugins /www/glpiV958
3) php bin/console db:update
Version GLPI actuel: 9.5.8; cible: 9.5.8.
Version de la base de données GLPI actuel: 9.5.7; cible: 9.5.7

Something wrong with database versionning? What did I miss?
Should I use db:install command after/before db:update?

Thank you for any help.


GLPI 9.5.13 Copyright (C) 2015-2022 Teclib' and contributors
FusionInventory 9.5+5.0 - Copyleft © 2010-2019 by FusionInventory Team
LAMP avec OpenSUSE Leap 15.2

Offline

#2 2022-07-05 13:16:53

fabibus
Member
From: Nantes
Registered: 2008-02-05
Posts: 171

Re: update 9.5.7 --> 9.5.8 cli command

I have the same message.
I can update it but the db version format is 9.5.7.
GLpi 9.5.8 is a security update


Plateforme en exploitation : GLPI 10.0.3 + GLPiinventory 10.0.3sur Fedora 36
PHP 8.1.11 ,Apache/2.4.54, mysql 8

Offline

#3 2022-07-05 16:53:26

cconard96
Moderator
Registered: 2018-07-31
Posts: 2,459
Website

Re: update 9.5.7 --> 9.5.8 cli command

Hello,

It looks like the schema version number was missed when updating the version numbers for the 9.5.8 release.
You can fix the GLPI_SCHEMA_VERSION on line 44 of the "inc/define.php" file by setting it to "9.5.8".


GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.

Offline

#4 2022-07-05 17:59:26

vocaltech
Member
Registered: 2022-07-02
Posts: 5

Re: update 9.5.7 --> 9.5.8 cli command

Ok so don't need to perform
php bin/console db:install
before
php bin/console db:update
in the update process?

Best regards


GLPI 9.5.13 Copyright (C) 2015-2022 Teclib' and contributors
FusionInventory 9.5+5.0 - Copyleft © 2010-2019 by FusionInventory Team
LAMP avec OpenSUSE Leap 15.2

Offline

#5 2022-07-05 20:46:33

cconard96
Moderator
Registered: 2018-07-31
Posts: 2,459
Website

Re: update 9.5.7 --> 9.5.8 cli command

The db:install command should only be used to setup a new database.
The db:update command would update the current database schema to the new version.


GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.

Offline

#6 2022-07-13 19:49:57

vocaltech
Member
Registered: 2022-07-02
Posts: 5

Re: update 9.5.7 --> 9.5.8 cli command

Thx cconard96. When I see at the end of the output of db:update this message: "Aucune migration requise"
I can safly go on and use your trick to update the schema version?


GLPI 9.5.13 Copyright (C) 2015-2022 Teclib' and contributors
FusionInventory 9.5+5.0 - Copyleft © 2010-2019 by FusionInventory Team
LAMP avec OpenSUSE Leap 15.2

Offline

Board footer

Powered by FluxBB