Installing a patch update
Perform a patch update of your OXID eShop if required.
Use the following steps to update the compilation from an existing version 7.0.2 to version 7.0.3, for example.
Procedure
Upgrade Composer to version 2.7.
Install Composer 2.7 as follows, for example:
composer selfupdate 2.7.1
Change to the main store directory (in our example /var/www/oxideshop/).
cd /var/www/oxideshop/
In the
composer.json
file located in the main store directory, update the metapackage version.
To do this, do the following:In the following sample command, adjust the version number of the metapackage according to the new store edition:
composer require --no-update oxid-esales/oxideshop-metapackage-<edition type: ce, pe, or ee>:v<version number>.
Run the command, in our example for updating an enterprise edition 7.0.2 to 7.0.3:
composer require --no-update oxid-esales/oxideshop-metapackage-ee:v7.0.3
Update the required libraries.
To do so, run the following composer command.
Optional: If you need the development-related files, omit the --no-dev parameter.composer update --no-plugins --no-scripts --no-dev
Download the new compilation.
To do this, run the following composer command.composer update --no-dev
For store files, themes and modules, confirm that the update overwrites existing files.
To ensure that the cached items do not contain incompatibilities, empty the
/tmp
directory.rm -rf source/tmp/*
Migrate the database.
vendor/bin/oe-eshop-db_migrate migrations:migrate
Regenerate the database views.
Background: Depending on the changes and store edition, the store may go into maintenance mode after the update.
To prevent this, regenerate the database views with the following command:vendor/bin/oe-eshop-db_views_generate
Result
The update is finished. If you open the store as administrator, the new version is displayed in the upper right corner.