Umbraco 从 7.4.3 升级到 7.6.1 无法插入重复键
Umbraco upgrading from 7.4.3 to 7.6.1 Cannot insert duplicate key
我正在尝试将 Umbraco 从 7.4.3 升级到 7.6.1,但从安装程序收到以下错误:
The database failed to upgrade. ERROR: The database configuration failed with the following message: Cannot insert duplicate key row in object 'dbo.umbracoNode' with unique index 'IX_umbracoNodeUniqueID'.
当我查看 umbracoNode table 时,我找不到错误消息中显示的唯一 ID 的行。
还有其他人遇到过这个问题并找到了解决方法吗?
非常感谢
编辑:
所以尝试禁用 IX_umbracoNodeUniqueID 约束并得到以下错误:
The database failed to upgrade. ERROR: The database configuration
failed with the following message: There are no primary or candidate
keys in the referenced table 'umbracoNode' that match the referencing
column list in the foreign key 'FK_umbracoRedirectUrl'. Could not
create constraint.
还有什么想法吗?
更新:
我最终确实让它起作用了。我创建了 7.6.5 的全新安装(自从我启动此 post 以来 Umbraco 一直在前进),然后将 "umbracoRedirectUrl" table 从全新安装导入到我的原始数据库中。再加上禁用 "UmbracoNode" table 中的 IX_umbracoNodeUniqueID 索引,安装得以完成。安装完成后,我尝试重新打开索引,这为我提供了更有用的错误消息,因此我能够跟踪具有重复 uniqueID 的节点并手动删除。它们似乎与之前的错误有关。删除它们后,我就可以重新激活 IX_umbracoNodeUniqueID 索引。
希望这对其他人有帮助。
删除索引 'IX_umbracoNodeUniqueID'。我有同样的问题并将我的数据库与其他 Umbraco 7 数据库进行比较,这似乎不是强制性的。
执行此操作后,我收到了一个关于缺少默认方案的单独错误,这是因为我的数据库用户设置错误。如果你确实得到了这个,只需将用户的默认方案更改为 'dbo'.
我正在尝试将 Umbraco 从 7.4.3 升级到 7.6.1,但从安装程序收到以下错误:
The database failed to upgrade. ERROR: The database configuration failed with the following message: Cannot insert duplicate key row in object 'dbo.umbracoNode' with unique index 'IX_umbracoNodeUniqueID'.
当我查看 umbracoNode table 时,我找不到错误消息中显示的唯一 ID 的行。
还有其他人遇到过这个问题并找到了解决方法吗?
非常感谢
编辑: 所以尝试禁用 IX_umbracoNodeUniqueID 约束并得到以下错误:
The database failed to upgrade. ERROR: The database configuration failed with the following message: There are no primary or candidate keys in the referenced table 'umbracoNode' that match the referencing column list in the foreign key 'FK_umbracoRedirectUrl'. Could not create constraint.
还有什么想法吗?
更新:
我最终确实让它起作用了。我创建了 7.6.5 的全新安装(自从我启动此 post 以来 Umbraco 一直在前进),然后将 "umbracoRedirectUrl" table 从全新安装导入到我的原始数据库中。再加上禁用 "UmbracoNode" table 中的 IX_umbracoNodeUniqueID 索引,安装得以完成。安装完成后,我尝试重新打开索引,这为我提供了更有用的错误消息,因此我能够跟踪具有重复 uniqueID 的节点并手动删除。它们似乎与之前的错误有关。删除它们后,我就可以重新激活 IX_umbracoNodeUniqueID 索引。
希望这对其他人有帮助。
删除索引 'IX_umbracoNodeUniqueID'。我有同样的问题并将我的数据库与其他 Umbraco 7 数据库进行比较,这似乎不是强制性的。
执行此操作后,我收到了一个关于缺少默认方案的单独错误,这是因为我的数据库用户设置错误。如果你确实得到了这个,只需将用户的默认方案更改为 'dbo'.