-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error upgrading module from 8.1.10 to 9.0.0 #77
Comments
Hi, Thank you for bringing this to our attention. We've just pushed up a likely fix for this issue in the master branch, seen here: 986eec8 If you can install the master branch version of the extension, please do so and let us know if the above resolves the issue. Otherwise, this change will be in the next release. Alternatively you can install and upgrade to, say, 8.3.5, and then after that, install and upgrade to 9.0.0. But that may not be feasible with long release schedules. |
https://i.imgur.com/oOG9cKk.png Upgrading from 8.1.10 to 9.0.0 still errors out. I don't believe the commit mentioned above fixed anything. The fact is that you're assuming these attributes to be there. You should ALWAYS check if the attribute exists or not, kind of like what is done on this line. magento2-extension/Setup/UpgradeData.php Line 164 in 5dab3ed
See this patch file for an example that would work. Let me know, I can make a PR need be. |
Pre-requisites
BV current version - 8.1.10
BV Updated version 9.0.0.
Issue
The 8.1.10 version does not have the
bv_feed_include
attribute, it is still calledbv_feed_exclude
The setup scripts for version 9.0.0 first tries to add a note on the non-existent
bv_feed_include
attributemagento2-extension/Setup/UpgradeData.php
Lines 133 to 144 in 9f7ee0f
before it can actually rename the attribute to
bv_feed_include
magento2-extension/Setup/UpgradeData.php
Lines 164 to 171 in 9f7ee0f
This causes an error during
setup:upgrade
attributebv_feed_include
does not existResolution
(or)
bv_feed_include
attribute existsI can contribute a PR if you have a preferred approach. I personally prefer 1
The text was updated successfully, but these errors were encountered: