-
Notifications
You must be signed in to change notification settings - Fork 72
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
Setup install then upgrade fails #61
Comments
Hi @adamj88 , which version of the module do you use (or what does the composer.json entry look like)? |
Hi @websharp Thanks for the reply, here's a more detailed explanation. The module version is latest stable version: Composer file looks similar to that generated from Create mysql db Create project
Add module
Add execute permissions on bin/magento
Install Magento
Run setup upgrade after installation (or any time in the future)
Fails with:
|
Hi @adamj88 , thank you for your explanation. I think we have to change the setup classes (UpgradeSchema.php) and split them (Install/Upgrade) to gain the required compatibility. For now as a workaround, you could try and delete the bitexpert_forcelogin_whitelist table after the installment, so the upgrade should run through. |
Hi @websharp Sounds right, looks like when just using an upgrade script it's running on Unfortunately for us this workaround isn't possible to implement on our CI. I think this needs splitting into |
Hi @adamj88, correct, the scaffolding part must be extracted from the current UpgradeSchema and placed into an InstallSchema. Happy if you want to give a pull request, else I will solve this in some time. |
Hi @websharp I've opened a PR for this, I've tested this and it prevents the above issue from occurring. Would it be possible for you to review this update? I've left |
Hi @adamj88, I merged your PR (many thanks for that!) and published a second Release Candidate, so you could use the version |
When creating a fresh install from a
composer.json
file with Magento & modules in and after runningsetup:install
, when runningsetup:upgrade
after this we're getting the following error:The text was updated successfully, but these errors were encountered: