Hi Team,
In the pimcore 10.6 version i have migrated all the classes before upgrading 11,
In the pimcore 11 v , when executing migration command => bin/console doctrine:migrations:migrate, gets dataobjects error as attached below
Im stuck with this from one week, please help me to solve this?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Sign up for Infrastructure as a Newsletter.
Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Hello there,
The error message from the screenshot indicates a missing column in your database schema, which is often the result of changes in the database structure between different versions of Pimcore.
Did you follow all of the steps from the v10 to v11 upgrade guide here:
One of the steps indicates to make sure you’ve ran the following commands to rebuild the classes, objectBricks, fieldCollections and customLayouts:
If you’ve done all of that already, here are some other suggestions that come to my mind:
Backup Your Database: Before proceeding with any migration or modification, ensure you have a complete backup of your database. This will allow you to restore your data in case anything goes wrong.
Review Database Schema Changes:
Update Database Schema:
bin/console doctrine:schema:update --force
to update the database schema. This will apply any missing database schema changes that are required for Pimcore 11.Clear Cache:
bin/console cache:clear
. Sometimes, outdated cache can cause issues during migrations.Re-run Migration:
bin/console doctrine:migrations:migrate
again.Database migrations can be complex, and issues like these are not uncommon. Always make sure to backup your database first!
Let me know if you encounter any further issues!
Best,
Bobby