Skip to content

Commit 64d5f97

Browse files
committed
Misc refactors and cleanup.
1 parent ba2ce1c commit 64d5f97

File tree

5 files changed

+5
-7
lines changed

5 files changed

+5
-7
lines changed

Directory.Build.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222

2323
<!-- Visibility -->
2424
<ItemGroup>
25-
<InternalsVisibleTo Include="PSql.Deploy.Tests" />
2625
<InternalsVisibleTo Include="PSql.Deploy.Engine.Tests" />
26+
<InternalsVisibleTo Include="PSql.Deploy.Tests" />
2727
<InternalsVisibleTo Include="DynamicProxyGenAssembly2" />
2828
<!-- Required for Moq to mock a class with an internal abstract method. -->
2929
</ItemGroup>

PSql.Deploy.Engine.Tests/Utilities/StringExtensionsTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ public void IsNullOrEmpty(string? s, bool expected)
1818
[Test]
1919
[TestCase(null, null)]
2020
[TestCase("", null)]
21-
[TestCase(" ", " " )]
2221
[TestCase("a", "a" )]
2322
public void NullIfEmpty(string? s, string? expected)
2423
{

PSql.Deploy.Engine/Migrations/MigrationLoader.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ private static void AppendFinalBatches(
138138
if (migration.IsPseudo)
139139
return;
140140

141-
var name = migration.Name.Replace("'", "''");
142-
var hash = migration.Hash.Replace("'", "''");
141+
var name = migration.Name.EscapeForSqlString();
142+
var hash = migration.Hash.EscapeForSqlString();
143143

144144
builder.StartNewBatch();
145145
builder.Append(

PSql.Deploy/Data/SqlTargetDatabase.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// SPDX-License-Identifier: MIT
33

44
using System.Diagnostics;
5-
using System.Net;
65

76
using static System.Reflection.BindingFlags;
87

PSql.Deploy/PSql.Deploy.psd1.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
# Requirements
1616
CompatiblePSEditions = 'Core'
1717
PowerShellVersion = '7.2'
18-
RequiredModules = @() # Designed to work with PSql, but can work independently
19-
RequiredAssemblies = @()
18+
#RequiredModules = @(...) # Designed to work with PSql, but can work independently
19+
#RequiredAssemblies = @(...)
2020

2121
# Initialization
2222
#ScriptsToProcess = @(...)

0 commit comments

Comments
 (0)