Skip to content

Commit

Permalink
Merge pull request #68 from ssteiner/master
Browse files Browse the repository at this point in the history
Updated Nuget packages
  • Loading branch information
JudahGabriel authored Aug 2, 2024
2 parents 45c4c64 + 45a9863 commit 9a6d10c
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 45 deletions.
4 changes: 2 additions & 2 deletions Raven.Migrations.Sample/Common/RavenExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ public static IDocumentStore EnsureExists(this IDocumentStore store)
using var dbSession = store.OpenSession();
dbSession.Query<Shipper>().Take(0).ToList();
}
catch (Raven.Client.Exceptions.Database.DatabaseDoesNotExistException)
catch (Client.Exceptions.Database.DatabaseDoesNotExistException)
{
// Create the database.
store.Maintenance.Server.Send(new Raven.Client.ServerWide.Operations.CreateDatabaseOperation(new Raven.Client.ServerWide.DatabaseRecord
store.Maintenance.Server.Send(new Client.ServerWide.Operations.CreateDatabaseOperation(new Client.ServerWide.DatabaseRecord
{
DatabaseName = store.Database
}));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using Raven.Migrations.Sample.Services;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Raven.Migrations.Sample.Migrations
{
Expand Down
6 changes: 0 additions & 6 deletions Raven.Migrations.Sample/Program.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;

namespace Raven.Migrations.Sample
{
Expand Down
2 changes: 1 addition & 1 deletion Raven.Migrations.Sample/Raven.Migrations.Sample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="RavenDB.Client" Version="6.0.2" />
<PackageReference Include="RavenDB.Client" Version="6.0.105" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Raven.Migrations\Raven.Migrations.csproj" />
Expand Down
6 changes: 1 addition & 5 deletions Raven.Migrations.Sample/Services/SillyService.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System;

namespace Raven.Migrations.Sample.Services
{
Expand Down
5 changes: 0 additions & 5 deletions Raven.Migrations.Sample/Startup.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.HttpsPolicy;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
Expand Down
19 changes: 11 additions & 8 deletions Raven.Migrations.Tests/Raven.Migrations.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,17 @@
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="FluentAssertions" Version="5.10.3" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0" />
<PackageReference Include="Moq" Version="4.14.5" />
<PackageReference Include="coverlet.collector" Version="1.2.0" />
<PackageReference Include="RavenDB.Client" Version="6.0.2" />
<PackageReference Include="RavenDB.TestDriver" Version="6.0.2" />
<PackageReference Include="xunit" Version="2.5.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.0">
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageReference Include="Moq" Version="4.20.70" />
<PackageReference Include="coverlet.collector" Version="6.0.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="RavenDB.Client" Version="6.0.105" />
<PackageReference Include="RavenDB.TestDriver" Version="6.0.105" />
<PackageReference Include="xunit" Version="2.9.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
7 changes: 3 additions & 4 deletions Raven.Migrations.Tests/RunnerTests.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
using System.Linq;
using System.Reflection;
using FluentAssertions;
using FluentAssertions;
using Raven.Client.Documents.Indexes;
using Raven.TestDriver;
using System.Linq;
using System.Reflection;
using Xunit;
using static System.Formats.Asn1.AsnWriter;

namespace Raven.Migrations.Tests
{
Expand Down
2 changes: 0 additions & 2 deletions Raven.Migrations/DependencyInjectionMigrationResolver.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace Raven.Migrations
{
Expand Down
4 changes: 2 additions & 2 deletions Raven.Migrations/MigrationRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ void ExecuteMigration(Directions direction, long version, Migration migration, A
if (migrationDoc == null)
{
skipCount++;
continue;
break;
}

ExecuteMigration(options.Direction, pair.Attribute!.Version, migration, () => {
Expand All @@ -103,7 +103,7 @@ void ExecuteMigration(Directions direction, long version, Migration migration, A
if (migrationDoc != null)
{
skipCount++;
continue;
break;
}

ExecuteMigration(options.Direction, pair.Attribute!.Version, migration, () => {
Expand Down
12 changes: 6 additions & 6 deletions Raven.Migrations/Raven.Migrations.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Version>6.0.1</Version>
<Version>6.0.2</Version>
<PackageId>RavenMigrations</PackageId>
<Authors>Darrel Portzline, Khalid Abuhakmeh, Judah Gabriel Himango</Authors>
<Company>BitShuva</Company>
Expand Down Expand Up @@ -31,10 +31,10 @@
<PackageReadmeFile>readme.md</PackageReadmeFile>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
<PackageReference Include="RavenDB.Client" Version="6.0.2" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
<PackageReference Include="RavenDB.Client" Version="6.0.105" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.1" />
</ItemGroup>
<ItemGroup>
<None Include="..\readme.md">
Expand Down

0 comments on commit 9a6d10c

Please sign in to comment.