我正在从Sitecore.NET 8.2(修订版161221)升级到Sitecore 9.1 update-1。我按照Sitecore指南进行了升级。按照指南,我在master,web和core数据库上运行了数据库升级脚本。该脚本包含以下内容:
IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Shadows]') AND type in (N'U'))
DROP TABLE [dbo].[Shadows]
运行脚本后,有一个步骤运行.update文件,该文件分析所有更改。我在分析部分看到很多这些错误:
Error installing 'addeditems/master/sitecore/templates/list manager/listoperation_{e83e0792-d9be-49d8-b7e2-80a6cc2d1836}'. More info
Some of the installation operation cannot be performed.
An exception occured when trying to install 'addeditems/master/sitecore/templates/list manager/listoperation_{e83e0792-d9be-49d8-b7e2-80a6cc2d1836}'.
Details: System.Exception: Invalid object name 'Shadows'. ---> System.Data.DataException:
Error executing SQL command: SELECT [TargetID], [ProxyID] FROM [Shadows] WHERE [ShadowID] = @proxyId ---> System.Data.SqlClient.SqlException:
Invalid object name 'Shadows'. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) at
数据库升级脚本实际上已从数据库中删除了该表。我不知道为什么程序包分析步骤抱怨数据库中缺少该表。