From a89fa34bdcd92640271039ff0f4a110cf7e01970 Mon Sep 17 00:00:00 2001 From: Peter Keating Date: Mon, 4 Feb 2019 18:18:17 +0000 Subject: [PATCH] Fix connection usage not supplying transaction during upgrade from beta 2 (#3137) --- .../Shell/ShellDescriptorManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OrchardCore/OrchardCore.Infrastructure/Shell/ShellDescriptorManager.cs b/src/OrchardCore/OrchardCore.Infrastructure/Shell/ShellDescriptorManager.cs index a6673ab3a2a..eb50f708ce1 100644 --- a/src/OrchardCore/OrchardCore.Infrastructure/Shell/ShellDescriptorManager.cs +++ b/src/OrchardCore/OrchardCore.Infrastructure/Shell/ShellDescriptorManager.cs @@ -159,8 +159,8 @@ private async Task UpgradeFromBeta2() var updateShellStateCmd = $"UPDATE {documentTable} SET {dialect.QuoteForColumnName(nameof(Document.Type))} = {dialect.GetSqlValue(newShellStateType)} WHERE {dialect.QuoteForColumnName(nameof(Document.Type))} = {dialect.GetSqlValue(oldShellStateType)}"; - await connection.ExecuteAsync(updateShellDescriptorCmd); - await connection.ExecuteAsync(updateShellStateCmd); + await connection.ExecuteAsync(updateShellDescriptorCmd, null, transaction); + await connection.ExecuteAsync(updateShellStateCmd, null, transaction); transaction.Commit(); }