Skip to content

Commit

Permalink
Upgrading to Weasel 7.11, bumping to 7.28
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremydmiller committed Sep 18, 2024
1 parent e5c42a3 commit 2c5e604
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<PropertyGroup>
<Version>7.27.0</Version>
<Version>7.28.0</Version>
<LangVersion>12.0</LangVersion>
<Authors>Jeremy D. Miller;Babu Annamalai;Oskar Dudycz;Joona-Pekka Kokko</Authors>
<PackageIconUrl>https://martendb.io/logo.png</PackageIconUrl>
Expand Down
2 changes: 1 addition & 1 deletion src/Marten/Marten.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<PackageReference Include="Polly.Core" Version="8.3.1" />
<PackageReference Include="System.Threading.Tasks.Dataflow" Version="8.0.0" />
<PackageReference Include="System.Text.Json" Version="8.0.4" />
<PackageReference Include="Weasel.Postgresql" Version="7.10.0" />
<PackageReference Include="Weasel.Postgresql" Version="7.11.0" />
</ItemGroup>

<!--SourceLink specific settings-->
Expand Down
1 change: 0 additions & 1 deletion src/Marten/Schema/MartenManagedTenantListPartitions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ public MartenManagedTenantListPartitions(StoreOptions options, string? schemaNam
_options.Storage.Add(Partitions);

_options.TenantPartitions = this;

}

public ManagedListPartitions Partitions { get; }
Expand Down
8 changes: 7 additions & 1 deletion src/Marten/Storage/DefaultTenancy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,13 @@ public ValueTask<IReadOnlyList<IDatabase>> BuildDatabases()

internal void Initialize()
{
Default = new Tenant(DefaultTenantId, new MartenDatabase(Options, _dataSource, Options.StoreName));
var martenDatabase = new MartenDatabase(Options, _dataSource, Options.StoreName);
if (Options.TenantPartitions != null)
{
martenDatabase.AddInitializer(Options.TenantPartitions.Partitions);
}

Default = new Tenant(DefaultTenantId, martenDatabase);
}

public void Dispose()
Expand Down

0 comments on commit 2c5e604

Please sign in to comment.