From d133c825372075405e750acb94c5067134531ed5 Mon Sep 17 00:00:00 2001 From: Auggie <773150+augustuen@users.noreply.github.com> Date: Sun, 29 Mar 2026 00:35:53 +0100 Subject: [PATCH] Revert incorrectly deleted function in MigrationExtension --- .../Datastore/Migration/Framework/MigrationExtension.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/NzbDrone.Core/Datastore/Migration/Framework/MigrationExtension.cs b/src/NzbDrone.Core/Datastore/Migration/Framework/MigrationExtension.cs index e0ec93774..ab390f6f7 100644 --- a/src/NzbDrone.Core/Datastore/Migration/Framework/MigrationExtension.cs +++ b/src/NzbDrone.Core/Datastore/Migration/Framework/MigrationExtension.cs @@ -22,6 +22,15 @@ public static ICreateTableColumnOptionOrWithColumnSyntax TableForModel(this ICre return expressionRoot.Table(name).WithColumn("Id").AsInt32().PrimaryKey().Identity(); } + public static IDbCommand CreateCommand(this IDbConnection conn, IDbTransaction tran, string query) + { + var command = conn.CreateCommand(); + command.Transaction = tran; + command.CommandText = query; + + return command; + } + public static void AddParameter(this IDbCommand command, object value) { var parameter = command.CreateParameter();