Skip to content

Commit

Permalink
Implicit usings for tests. Replaced a string.format
Browse files Browse the repository at this point in the history
  • Loading branch information
droyad committed Jul 24, 2024
1 parent 34e8f36 commit 8f078ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Tests/Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>net8</TargetFramework>
<AssemblyName>Tests</AssemblyName>
<RootNamespace>DbUp.MySql.Tests</RootNamespace>
<!-- <ImplicitUsings>enable</ImplicitUsings> Can't use implict usings with net46 -->
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion src/dbup-mysql/MySqlExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public static void MySqlDatabase(
if (DatabaseExists(connection, databaseName))
return;

var collationString = string.IsNullOrEmpty(collation) ? "" : string.Format(@" COLLATE {0}", collation);
var collationString = string.IsNullOrEmpty(collation) ? "" : $@" COLLATE {collation}";
var sqlCommandText = string.Format
(
@"create database {0}{1};",
Expand Down

0 comments on commit 8f078ca

Please sign in to comment.