Skip to content

Commit

Permalink
Fix connection usage not supplying transaction during upgrade from be…
Browse files Browse the repository at this point in the history
…ta 2 (#3137)
  • Loading branch information
peterkeating authored and sebastienros committed Feb 4, 2019
1 parent abbc806 commit a89fa34
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit a89fa34

Please sign in to comment.