Skip to content

Error sql when running the upgrade #6905

Description

@thienvc

https://github.com/dnnsoftware/Dnn.Platform/blob/ea2cc0373d4ee8d5c28805cf6901fbb4e57d88b6/DNN Platform/Website/Providers/DataProviders/SqlDataProvider/09.13.08.SqlDataProvider#L12

When running the upgrade, I encountered an SQL error at this point because the index IX_Lists_ListName_Value_Text_ParentID was not found in the database.
I think we need to add the following code for security.
IF EXISTS (SELECT * FROM sys.indexes WHERE name = N'IX_{objectQualifier}Lists_ListName_Value_Text_ParentID')
The code is the same as in the old version:

IF EXISTS (SELECT * FROM sys.indexes WHERE name = N'IX_{objectQualifier}Lists_ListName_Value_Text_ParentID')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions