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

  1. Upgrade Composer to version 2.7.

    Install Composer 2.7 as follows, for example:

    composer selfupdate 2.7.7
    
  2. Change to the main store directory (in our example /var/www/oxideshop/).

    cd /var/www/oxideshop/
    
  3. In the composer.json file located in the main store directory, update the metapackage version.
    To do this, do the following:

    1. 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>.
      
    2. 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
      
  4. 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
    
  5. Download the new compilation.
    To do this, run the following composer command.

    composer update --no-dev
    
  6. For store files, themes and modules, confirm that the update overwrites existing files.

  7. To ensure that the cached items do not contain incompatibilities, empty the /tmp directory.

    rm -rf source/tmp/*
    
  8. Migrate the database.

    vendor/bin/oe-eshop-db_migrate migrations:migrate
    
  9. 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.