2012-09-12 16 views
0

我们有一个Magento 1.3项目,我们希望它将其升级到magento 1.6。 所以我们安装一个新的magento 1.6,现在我们要把所有的产品和客户数据从maganeto 1.3放到magento 1.6。我们从magento 1.3备份其数据库表中的所有产品和客户数据。将Magento 1.3数据迁移/替换为maganeto 1.6

这些都是我们备份的DATAS表:

------------------------------------- 
Product Tables: 
------------------------------------- 
catalogrule/
catalogrule_product/
catalogrule_product_price/
catalogrule_affected_product/

catalogindex_price/
catalogindex_eav/
catalogindex_minimal_price/
catalogindex_aggregation_tag/
catalogindex_aggregation/
catalogindex_aggregation_to_tag/

catalogsearch_query/
catalogsearch_fulltext/
catalogsearch_result/
catalog_compare_item/

catalog_category_product/
catalog_category_product_index/
catalog_category_flat_1/

catalog_product_entity_tier_price/
catalog_product_enabled_index/
catalog_product_website/

catalog_category_entity/
catalog_category_entity_datetime/
catalog_category_entity_decimal/
catalog_category_entity_int/
catalog_category_entity_text/
catalog_category_entity_varchar/

catalog_product_entity/
catalog_product_entity_datetime/
catalog_product_entity_decimal/
catalog_product_entity_gallery/
catalog_product_entity_int/
catalog_product_entity_media_gallery/
catalog_product_entity_media_gallery_value/
catalog_product_entity_text/
catalog_product_entity_varchar/

catalog_product_super_link/
catalog_product_link_type/
catalog_product_link/
catalog_product_link_attribute/
catalog_product_link_attribute_decimal/
catalog_product_link_attribute_int/
catalog_product_link_attribute_varchar/

catalog_product_option/ 
catalog_product_option_title/
catalog_product_option_price/
catalog_product_option_type_value/
catalog_product_option_type_title/
catalog_product_option_type_price/

cataloginventory_stock/
cataloginventory_stock_status/
cataloginventory_stock_item/

catalog_product_bundle_option/
catalog_product_bundle_option_value/
catalog_product_bundle_selection/
catalog_product_bundle_price_index/

catalog_product_super_attribute // 
catalog_product_super_attribute_label/ 
catalog_product_super_attribute_pricing/

product_alert_price/
product_alert_stock/

downloadable_link_price/
downloadable_link_title/
downloadable_link/
downloadable_sample_title/
downloadable_sample/

---------------------------------------------- 
Customers Tables : 
---------------------------------------------- 
customer_group/ 

newsletter_template/
newsletter_queue/ 
newsletter_queue_store_link/ 
newsletter_problem/ 
newsletter_queue_link/ 
newsletter_subscriber/ 

customer_entity/ 
customer_entity_datetime/ 
customer_entity_decimal/ 
customer_entity_int/ 
customer_entity_text/ 
customer_entity_varchar/ 

customer_address_entity/ 
customer_address_entity_datetime/ 
customer_address_entity_decimal/ 
customer_address_entity_int/ 
customer_address_entity_text/ 
customer_address_entity_varchar/ 

review_entity/ 
review_status/ 
review/ 
review_store/ 
review_entity_summary/ 
review_detail/ 

rating_entity/ 
rating/ 
rating_store/ 
rating_option 
rating_option_vote/ 
rating_title/ 
rating_option_vote_aggregated/ 

poll/ 
poll_store/ 
poll_answer/ 
poll_vote/ 

wishlist/ 
wishlist_item/ 

然后,我们删除其数据库表中的所有产品和客户数据,Magento的1.6。现在,当我们从Magento的1.3备份数据恢复到1.6,我们得到了这个错误...

Query: 
/*Data for the table `catalog_category_entity` */ 
insert into `catalog_category_entity`(...) 

Error occured at:2012-09-12 14:05:06 
Line no.:20 
Error Code: 1062 - Duplicate entry '1' for key 'PRIMARY' 

我只是想知道的是,为什么它成为“主键重复的条目”当我删除了所有magento 1.6中的旧数据?

有没有人有关于我的情况的想法?您能否再给我一个关于如何将所有产品和客户数据从magento 1.3转移到1.6的想法?

任何帮助将不胜感激。在此先感谢...

回答

1

更好的办法:

  • 转缓存
  • 关闭所有定制地方和社区扩展
  • 关闭所有本地核心覆盖
  • 关闭所有的自定义主题和主题定制
  • 再生索引
  • 复制1.6或最新的Magento代码
  • 火升级并做完吧