- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to do Magento 2.0.7 to Magento 2.2 Code & Data Migration ?
Hello Community,
We are planing to upgrade one of our project to Magento 2.2 . Right now we are using Community Edition with version 2.0.7 . As this is our first migration we are not sure about exact steps of migration . So can you please guide us How to make this work ?
How can we migrate the entire code and database to Magento 2.2 ?
Is there any tool available for migration ? Does Magento 2.2 contains too many database table changes than 2.0.7 ?
What are the proper steps for code and db migration ?
Thanks in advanced !
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: How to do Magento 2.0.7 to Magento 2.2 Code & Data Migration ?
Hello @maratheprash
Magento update using CLI.
1. Step
- Take a backup of the live site.
- Setup stage environment.
- On stage environment install composer.
- List out of all third-party extensions or installed extensions.
- Please check those extensions are available on an updated version. If not available then find another extension as per your requirement.
- If possible the uninstall third-party extensions or installed extensions.
- Note down the theme customization and changelog because some of old Magento functions are deprecated.
- Set the default Magento theme.
2. Step
- First, upgrade on Magento 2.1.0
Set developer mode php bin/magento deploy:mode:set developer
Upgrade Magento 2.1.0bin/magento maintenance:enable composer require magento/product-community-edition 2.1.0 --no-update composer update rm -rf var/di/* var/generation/* var/cache/* var/log/* var/page_cache/* var/session/* var/view_preprocessed/* pub/static/* php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento setup:static-content:deploy -f php bin/magento cache:clean php bin/magento cache:flush php bin/magento indexer:reindex
Please check website is working properly, If not working fix the error and check the error log.
3. Step
- Upgrade on Magento 2.2.x
bin/magento maintenance:enable composer require magento/product-community-edition 2.2.7 --no-update composer update rm -rf var/di/* var/generation/* var/cache/* var/log/* var/page_cache/* var/session/* var/view_preprocessed/* pub/static/* php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento setup:static-content:deploy -f php bin/magento cache:clean php bin/magento cache:flush php bin/magento indexer:reindex
Please check website is working properly or not, If not working fix the error and check the error log.- Please install the updated extension or required extension and check website is working.
- Please enable the theme and check website is working. If not working create a new theme or Fix the current theme issues.
4. Step
- Setup the production mode
magento deploy:mode:set production
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: How to do Magento 2.0.7 to Magento 2.2 Code & Data Migration ?
Hey @HitsVaghasiya
Thanks for your help !
Upgrading from 2.0.7 t0 2.1 as per you steps. everything works fine except catalog product grid in admin section .
It is showing me error -
Undefined index: websites in vendor/magento/module-catalog/Ui/Component/Listing/Columns/Websites.php on line 58
Is there any solution for this ?