-
-
Notifications
You must be signed in to change notification settings - Fork 157
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
Missing database columns after upgrading from CoreShop 3 to 4 #2738
Comments
There is something wrong in the Docs, CoreShop 4.0 is the same as the latest CoreShop 3.2. If you update from 3.2 you have to be at the latest 3.2 and then go to 4.0 (and not 4.*, since 4.1 has new features already).
Yes, go do latest 3.2 first
We follow the same principle as Pimcore does in these regards. We don't want to have like a 100 of migrations and we remove them therefore between major releases.
You can also run |
Concerning Pimcore's approach I have already written somewhere that having separate But whatever, thanks for mentioning |
We don't have a separate install.sql and migrations. we use Doctrine ORM for everything that is directly SQL related. We install the database directly based on the ORM configuration.
Its a decision we made to do it that way to have a clear history. once you follow our upgrade guide, you will not run into issues anyway. |
Where is this upgrade guide? This is what I asked in
I only found https://docs.coreshop.org/CoreShop/Getting_Started/Upgrade_Notes/index.html and this does not tell anything that one has to upgrade to latest version of the old major version first. |
@BlackbitDevs We added a migration guide: https://docs.coreshop.org/CoreShop/Getting_Started/Upgrade_Guide Anything in your opinion we should add there? |
Thanks for the upgrade guide, this helps a lot! Have created #2745 to support people who have already upgraded major version without updating to latest minor version before. |
Assume you have a Pimcore with CoreShop 3. And let's assume that it is not the latest 3.* version. You want to upgrade to 4.*. In https://docs.coreshop.org/CoreShop/Getting_Started/Upgrade_Notes/index.html it seems easy:
The problem is that when you directly want to upgrade from 3.* to 4.* the migrations from current 3.* to latest 3.* are not available anymore (compare https://github.com/coreshop/CoreShop/tree/3.2/src/CoreShop/Bundle/CoreBundle/Migrations and https://github.com/coreshop/CoreShop/tree/4.0/src/CoreShop/Bundle/CoreBundle/Migrations). This means the existing database cannot be updated to the desired state.
We have now checked via
bin/console coreshop:resources:create-tables coreshop --dump-sql
and there are a lot of changes.Questions:
bin/console coreshop:resources:create-tables coreshop
now or how to migrate database to compatible state?The text was updated successfully, but these errors were encountered: