To upgrade Phraseanet to the latest version, it is strongly recommended to follow this upgrade procedure:
bin/console system:backup-db
Overwrite the config folder with the one of the previous installation.
Reloading Apache or Nginx server, eventually PHP-FPM to support the new version of the extension.
In a terminal, at sources root, execute the following command. Please note that execution time in this step could be long.
bin/setup system:upgrade
After upgrading from old versions (before 3.6), the output asks to run more commands:
Your install requires data migration, please execute the following command
bin/setup system:upgrade-datas --from=3.1
Your install might need to re-read technical datas
bin/console records:rescan-technical-datas
Your install might need to re-read technical datas
bin/console records:build-missing-subdefs
These commands should be executed in the same order to ensure a correct upgrade.
bin/console --version