Upgrade the Stock module

Edit on GitHub

Upgrading from version 7.* to version 8.0.0

In this new version of the Stock module, we have added support of decimal stock. You can find more details about the changes on the Stock module release page.

This release is a part of the Decimal Stock concept migration. When you upgrade this module version, you should also update all other installed modules in your project to use the same concept as well as to avoid inconsistent behavior. For more information, see Decimal Stock Migration Concept.

Estimated migration time: 5 min

To upgrade to the new version of the module, do the following:

  1. Upgrade the Stock module to the new version:
composer require spryker/stock: "^8.0.0" --update-with-dependencies
  1. Update the database entity schema for each store in the system:
APPLICATION_STORE=DE console propel:schema:copy
APPLICATION_STORE=US console propel:schema:copy
...
  1. Run the database migration:
console propel:install
console transfer:generate
  1. Resolve deprecations:
DEPRECATED CODE REPLACEMENT
Spryker\Zed\Stock\StockConfig::getStoreToWarehouseMapping() Removed without replacement.

Upgrading from version 5.* to version 7.0.0

To dismantle the Horizontal Barrier and enable partial module updates on projects, a Technical Release took place. Public API of source and target major versions are equal. No migration efforts are required. Please [contact us](https://spryker.com/en/support/) if you have any questions.