|
Before following up the steps please do it on dev environment first and if everything is fine then do on live server. Keep always backup of code archive and DB dump.
Here are the Steps:
- if you have Custom Theme and Custom Code/Third party extensions, Merge it with Out of Box Magento 1.12 Setup.
- Move files for Media, Skin, Js, app/etc/modules etc in New Setup.
- Change core_config_data values for baseurl and secure base url in existing database
- Remove foreign key conflicts with following commands:
delete from `catalog_category_product` WHERE product_id not in(select entity_id from catalog_product_entity);
delete from `catalog_category_product` WHERE category_id not in(select entity_id from catalog_category_entity);
delete from `catalog_product_website` WHERE product_id not in(select entity_id from catalog_product_entity);
delete from `catalog_product_entity_media_gallery` WHERE entity_id not in(select entity_id from catalog_product_entity);
delete from `catalog_product_index_eav_idx` WHERE entity_id not in(select entity_id from catalog_product_entity);
delete from `catalog_product_index_eav` WHERE entity_id not in(select entity_id from catalog_product_entity);
delete from `catalog_product_link` WHERE product_id not in(select entity_id from catalog_product_entity);
delete from `catalog_product_relation` WHERE parent_id not in(select entity_id from catalog_product_entity);
delete from wishlist where customer_id not in(select entity_id from customer_entity);
- Drop following tables to get rid of “Table already Exist” error:
drop table sales_order_status;
drop table sales_order_status_label;
drop table sales_order_status_state;
drop table importexport_importdata;
drop table wishlist_item_option;
drop table paypal_cert;
drop table xmlconnect_application;
drop table xmlconnect_config_data;
drop table xmlconnect_history;
drop table xmlconnect_notification_template;
drop table xmlconnect_queue;
- Change Permissions:
• chmod –R o+w media
• chmod o+w var var/.htaccess app/etc
- Modify app/etc/local.xml for Database configuration
Now run the setup and wait for few minutes (25-60 approx.)
- If everything goes ok then run patches if you have any
- Login to admin panel and perform reindexing (Admin Panel: System->Index Management)
- Refresh Cache from Admin Panel (Admin Panel: System -> Cache Management)
And that’s it. Upgraded version of Magento is ready to use . Good Luck!
|