autoupgrade
autoupgrade copied to clipboard
Add a check about PS_VERSION_DB
Questions | Answers |
---|---|
Description? | This PR adds a check on the value of PS_VERSION_DB. A mismatch between the current version of PrestaShop and the value store in database means all the migration files may not have run. The merchant needs to check if its structure is up-to-date by running missed SQL files and bumping PS_VERSION_DB when done. This PR also removes some duplicated code to get the module version. |
Type? | improvement |
BC breaks? | Nope |
Deprecations? | Nope |
Fixed ticket? | Partially fixes https://github.com/PrestaShop/PrestaShop/issues/33856, Fixes https://github.com/PrestaShop/PrestaShop/issues/15198 |
Sponsor company | @PrestaShopCorp |
How to test? | Manually change the value of PS_VERSION_DB in the configuration table to make the error appear. Restoring its original value will make the error disappear. |