feat: add PS_SHOP_MODE migration for 9.2.0 - #1858
Conversation
|
Hello @soledis-contributeur! This is your first pull request on autoupgrade repository of the PrestaShop project. Thank you, and welcome to this Open Source community! |
49048fe to
fcb5915
Compare
Quetzacoalt91
left a comment
There was a problem hiding this comment.
Thanks @soledis-contributeur. Can you please target the branch 7.6.x so we can release quickly?
fcb5915 to
c6fd1df
Compare
Done! Rebased onto 7.6.x and applied your suggestion using add_configuration_if_not_exists. Thanks! |
|
Thanks @soledis-contributeur |
|
@soledis-contributeur can u rebase please ? |
Add the PS_SHOP_MODE configuration migration so existing shops upgraded to 9.2.0 get the same configuration as a fresh install. Uses add_configuration_if_not_exists so the migration is idempotent and never overwrites a value already set on the shop. Related to PrestaShop/PrestaShop#40685
c6fd1df to
3ff6ca6
Compare
|
ingridusta
left a comment
There was a problem hiding this comment.
|
PR merged, well done! Message to @PrestaShop/committers: do not forget to milestone it before the merge. |




PS_SHOP_MODEconfiguration migration inupgrade/sql/9.2.0.sql.PS_SHOP_MODErow exists in theps_configurationtable with the valueb2c_only(e.g.SELECT value FROM ps_configuration WHERE name = 'PS_SHOP_MODE';). It must match the value a fresh 9.2.0 install gets fromconfiguration.xml. Re-running the update must not error or change an existing value.