magento - 从 Magento 1.9 到 Magento 2.4 的数据迁移过程中出现错误
问题描述
SQLSTATE [42S02]:未找到基表或视图:1146 表“m2loom_live.customer_entity_back”不存在,查询为:SELECT DISTINCT child
。custome r_id
FROM authorlogin_customer
AS child
LEFT JOIN customer_entity_back
AS parent
ON child.customer_id = parent.entity_id WHERE (child.customer_id IS NOT NULL) AND (parent.entity_id IS NUL L)
解决方案
查看该表名 ( m2loom_live
) 我猜该表来自您可能已放入的扩展或自定义。这些表需要存在才能将它们的行迁移到新数据库。为此,您需要安装该扩展的 Magento 2 版本或重新创建模块并添加安装脚本(或更好的是 db_schema.xml)文件,然后运行bin/magento setup:upgrade
以创建表。然后您应该能够将数据迁移到新数据库。
如果您不想保留该表,则必须修改或扩展数据迁移工具的映射文件,以告诉它忽略该表而不是尝试迁移其数据。我不是 100% 在这部分,但我认为您想要编辑的映射文件将是map.xml
并且您会添加:
<document_rules><!-- This is the element you need to add your configuration too -->
...
<ignore>
<document>Your Table Here</document>
</ignore>
推荐阅读
- python - Python 将字典转换为数据框并将其导出到 csv 文件
- html - 反应不从网络源渲染我的图像
- spring - jhipster中的“这个实体是关系的所有者是什么意思”是什么意思
- prolog - 将目标作为参数传递?加上可变数量的参数?
- classification - 分类错误率决策可以小于0吗?什么时候它会正好是 0?
- .net - HTTP 错误 500.30 - ANCM 进程内启动失败 - 我在 IIS 服务器上本地部署 .NET Core 3.1 项目
- bash - 当包含在函数中时,bash extglob 模式匹配会中断
- python - Subprocess.run 和未知数量的文件,如何?
- javascript - onbeforeunload 在 Chrome 上的工作方式与在 Firefox 上的工作方式不同。我正在寻找任何潜在的替代品
- elasticsearch - 使用 ngram 分析器获取脏结果以进行高亮搜索