将Magento 1.3数据迁移/替换为maganeto 1.6

时间:2012-09-12 06:15:02

标签: mysql database magento

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

这些是我们备份数据的表格:

-------------------------------------
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 个答案:

答案 0 :(得分:1)

更好的方法:

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