From 46994c2d1cf959ad4d9d09bc44e9efe197ef5441 Mon Sep 17 00:00:00 2001 From: Bjarke Berg Date: Wed, 10 Apr 2024 13:21:32 +0200 Subject: [PATCH] Added missing index, while adding column key to users --- .../Migrations/Upgrade/V_14_0_0/AddGuidsToUsers.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_14_0_0/AddGuidsToUsers.cs b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_14_0_0/AddGuidsToUsers.cs index 4a2f34d149..b6d4e39d5e 100644 --- a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_14_0_0/AddGuidsToUsers.cs +++ b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_14_0_0/AddGuidsToUsers.cs @@ -45,6 +45,10 @@ internal class AddGuidsToUsers : UnscopedMigrationBase { var columns = SqlSyntax.GetColumnsInSchema(Context.Database).ToList(); AddColumnIfNotExists(columns, NewColumnName); + + var nodeDtoTrashedIndex = $"IX_umbracoUser_userKey"; + CreateIndex(nodeDtoTrashedIndex); + List? userDtos = Database.Fetch(); if (userDtos is null) {