From da34188024ae8f0295bf3d473ef58b132cc18343 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Tue, 17 Feb 2026 07:03:33 +0000
Subject: [PATCH 1/3] Initial plan
From bc64e8412e0dbe8bf0231155a4d3fa0ff2287ad9 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Tue, 17 Feb 2026 07:10:01 +0000
Subject: [PATCH 2/3] Update Npgsql to 10.0.1 for net8.0 target and add
TestConnectionManager
Co-authored-by: droyad <1687639+droyad@users.noreply.github.com>
---
src/Tests/TestConnectionManager.cs | 21 +++++++++++++++++++++
src/Tests/Tests.csproj | 2 +-
src/dbup-postgresql/dbup-postgresql.csproj | 2 +-
3 files changed, 23 insertions(+), 2 deletions(-)
create mode 100644 src/Tests/TestConnectionManager.cs
diff --git a/src/Tests/TestConnectionManager.cs b/src/Tests/TestConnectionManager.cs
new file mode 100644
index 0000000..8e8b61f
--- /dev/null
+++ b/src/Tests/TestConnectionManager.cs
@@ -0,0 +1,21 @@
+using System.Collections.Generic;
+using System.Data;
+using DbUp.Engine.Transactions;
+
+namespace DbUp.Postgresql.Tests;
+
+///
+/// Test implementation of DatabaseConnectionManager for unit testing.
+///
+public class TestConnectionManager : DatabaseConnectionManager
+{
+ public TestConnectionManager(IDbConnection connection)
+ : base(new DelegateConnectionFactory(_ => connection))
+ {
+ }
+
+ public override IEnumerable SplitScriptIntoCommands(string scriptContents)
+ {
+ yield return scriptContents;
+ }
+}
diff --git a/src/Tests/Tests.csproj b/src/Tests/Tests.csproj
index 22618f0..fc606ff 100644
--- a/src/Tests/Tests.csproj
+++ b/src/Tests/Tests.csproj
@@ -10,7 +10,7 @@
-
+
diff --git a/src/dbup-postgresql/dbup-postgresql.csproj b/src/dbup-postgresql/dbup-postgresql.csproj
index f5c7eef..2d080c0 100644
--- a/src/dbup-postgresql/dbup-postgresql.csproj
+++ b/src/dbup-postgresql/dbup-postgresql.csproj
@@ -32,7 +32,7 @@
-
+
From 959989ab36ac48fca18c29dfa4d556c40aa02fc9 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Tue, 17 Feb 2026 07:11:20 +0000
Subject: [PATCH 3/3] Update Microsoft.NET.Test.Sdk to 18.0.1
Co-authored-by: droyad <1687639+droyad@users.noreply.github.com>
---
src/Tests/Tests.csproj | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/Tests/Tests.csproj b/src/Tests/Tests.csproj
index fc606ff..3ddaad6 100644
--- a/src/Tests/Tests.csproj
+++ b/src/Tests/Tests.csproj
@@ -11,7 +11,7 @@
-
+
all