Skip to content

Commit

Permalink
v1.1.0-n pre-release
Browse files Browse the repository at this point in the history
Fix migrations
  • Loading branch information
Danny Logsdon committed Oct 15, 2024
1 parent 9e5a510 commit 71d91d0
Show file tree
Hide file tree
Showing 29 changed files with 112 additions and 107 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@
<ProjectReference Include="..\ServiceBricks.Logging.Debug\ServiceBricks.Logging.Debug.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ServiceBricks.Storage.AzureDataTables" Version="1.1.0-m" />
<PackageReference Include="ServiceBricks.Storage.AzureDataTables" Version="1.1.0-n" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Version>1.1.0-m</Version>
<Version>1.1.0-n</Version>
<Description>The open source microservices platform. Visit https://ServiceBricks.com to learn more.</Description>
<PackageId>ServiceBricks.Logging.AzureDataTables</PackageId>
<Title>ServiceBricks.Logging.AzureDataTables</Title>
Expand All @@ -23,7 +23,7 @@
<PackageRequireLicenseAcceptance>False</PackageRequireLicenseAcceptance>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/holomodular/ServiceBricks</RepositoryUrl>
<IsPackable>False</IsPackable>
<IsPackable>True</IsPackable>
</PropertyGroup>
<ItemGroup>
<None Include="Resource\readme.md" Pack="True" PackagePath="\" />
Expand All @@ -33,9 +33,9 @@
</None>
</ItemGroup>
<ItemGroup>
<PackageReference Include="ServiceBricks.Logging" Version="1.1.0-m" />
<PackageReference Include="ServiceBricks.Logging" Version="1.1.0-n" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ServiceBricks.Storage.AzureDataTables" Version="1.1.0-m" />
<PackageReference Include="ServiceBricks.Storage.AzureDataTables" Version="1.1.0-n" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ public static IServiceCollection AddServiceBricksLoggingCosmos(this IServiceColl
// AI: Add the parent module
services.AddServiceBricksLoggingEntityFrameworkCore(configuration);

// AI: Remove the EFC rule since we are using a different models
LoggingEntityFrameworkCoreModuleAddRule.UnRegister(BusinessRuleRegistry.Instance);

// AI: Add the module to the ModuleRegistry
ModuleRegistry.Instance.Register(LoggingCosmosModule.Instance);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Version>1.1.0-m</Version>
<Version>1.1.0-n</Version>
<Description>The open source microservices platform. Visit https://ServiceBricks.com to learn more.</Description>
<PackageId>ServiceBricks.Logging.Cosmos</PackageId>
<Title>ServiceBricks.Logging.Cosmos</Title>
Expand All @@ -23,7 +23,7 @@
<PackageRequireLicenseAcceptance>False</PackageRequireLicenseAcceptance>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/holomodular/ServiceBricks</RepositoryUrl>
<IsPackable>False</IsPackable>
<IsPackable>True</IsPackable>
</PropertyGroup>
<ItemGroup>
<None Include="Resource\readme.md" Pack="True" PackagePath="\" />
Expand All @@ -33,11 +33,11 @@
</None>
</ItemGroup>
<ItemGroup>
<PackageReference Include="ServiceBricks.Logging.EntityFrameworkCore" Version="1.1.0-m" />
<PackageReference Include="ServiceBricks.Logging.EntityFrameworkCore" Version="1.1.0-n" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="ServiceBricks.Storage.Cosmos" Version="1.1.0-m" />
<PackageReference Include="ServiceBricks.Storage.Cosmos" Version="1.1.0-n" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<ProjectReference Include="..\ServiceBricks.Logging.Debug\ServiceBricks.Logging.Debug.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ServiceBricks.Storage.EntityFrameworkCore" Version="1.1.0-m" />
<PackageReference Include="ServiceBricks.Storage.EntityFrameworkCore" Version="1.1.0-n" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Version>1.1.0-m</Version>
<Version>1.1.0-n</Version>
<Description>The open source microservices platform. Visit https://ServiceBricks.com to learn more.</Description>
<PackageId>ServiceBricks.Logging.EntityFrameworkCore</PackageId>
<Title>ServiceBricks.Logging.EntityFrameworkCore</Title>
Expand All @@ -23,7 +23,7 @@
<PackageRequireLicenseAcceptance>False</PackageRequireLicenseAcceptance>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/holomodular/ServiceBricks</RepositoryUrl>
<IsPackable>False</IsPackable>
<IsPackable>True</IsPackable>
</PropertyGroup>
<ItemGroup>
<None Include="Resource\readme.md" Pack="True" PackagePath="\" />
Expand All @@ -34,11 +34,11 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="ServiceBricks.Logging" Version="1.1.0-m" />
<PackageReference Include="ServiceBricks.Logging" Version="1.1.0-n" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="ServiceBricks.Storage.EntityFrameworkCore" Version="1.1.0-m" />
<PackageReference Include="ServiceBricks.Storage.EntityFrameworkCore" Version="1.1.0-n" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Version>1.1.0-m</Version>
<Version>1.1.0-n</Version>
<Description>The open source microservices platform. Visit https://ServiceBricks.com to learn more.</Description>
<PackageId>ServiceBricks.Logging.InMemory</PackageId>
<Title>ServiceBricks.Logging.InMemory</Title>
Expand All @@ -23,7 +23,7 @@
<PackageRequireLicenseAcceptance>False</PackageRequireLicenseAcceptance>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/holomodular/ServiceBricks</RepositoryUrl>
<IsPackable>False</IsPackable>
<IsPackable>True</IsPackable>
</PropertyGroup>
<ItemGroup>
<None Include="Resource\readme.md" Pack="True" PackagePath="\" />
Expand All @@ -34,11 +34,11 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="ServiceBricks.Logging.EntityFrameworkCore" Version="1.1.0-m" />
<PackageReference Include="ServiceBricks.Logging.EntityFrameworkCore" Version="1.1.0-n" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="ServiceBricks.Storage.InMemory" Version="1.1.0-m" />
<PackageReference Include="ServiceBricks.Storage.InMemory" Version="1.1.0-n" />
</ItemGroup>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
<ProjectReference Include="..\ServiceBricks.Logging.Debug\ServiceBricks.Logging.Debug.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ServiceBricks.Storage.MongoDb" Version="1.1.0-m" />
<PackageReference Include="ServiceBricks.Storage.MongoDb" Version="1.1.0-n" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Version>1.1.0-m</Version>
<Version>1.1.0-n</Version>
<Description>The open source microservices platform. Visit https://ServiceBricks.com to learn more.</Description>
<PackageId>ServiceBricks.Logging.MongoDb</PackageId>
<Title>ServiceBricks.Logging.MongoDb</Title>
Expand All @@ -23,7 +23,7 @@
<PackageRequireLicenseAcceptance>False</PackageRequireLicenseAcceptance>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/holomodular/ServiceBricks</RepositoryUrl>
<IsPackable>False</IsPackable>
<IsPackable>True</IsPackable>
</PropertyGroup>
<ItemGroup>
<None Include="Resource\readme.md" Pack="True" PackagePath="\" />
Expand All @@ -33,9 +33,9 @@
</None>
</ItemGroup>
<ItemGroup>
<PackageReference Include="ServiceBricks.Logging" Version="1.1.0-m" />
<PackageReference Include="ServiceBricks.Logging" Version="1.1.0-n" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ServiceBricks.Storage.MongoDb" Version="1.1.0-m" />
<PackageReference Include="ServiceBricks.Storage.MongoDb" Version="1.1.0-n" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

<ItemGroup>
<Compile Include="..\ServiceBricks.Logging.Postgres\Extensions\ServiceCollectionExtensions.cs" Link="ServiceCollectionExtensions.cs" />
<Compile Include="..\ServiceBricks.Logging.Postgres\Migrations\20240913102131_LoggingV1.cs" Link="20240913102131_LoggingV1.cs" />
<Compile Include="..\ServiceBricks.Logging.Postgres\Migrations\20240913102131_LoggingV1.Designer.cs" Link="20240913102131_LoggingV1.Designer.cs" />
<Compile Include="..\ServiceBricks.Logging.Postgres\Migrations\20241014165653_LoggingV1.cs" Link="20241014165653_LoggingV1.cs" />
<Compile Include="..\ServiceBricks.Logging.Postgres\Migrations\20241014165653_LoggingV1.Designer.cs" Link="20241014165653_LoggingV1.Designer.cs" />
<Compile Include="..\ServiceBricks.Logging.Postgres\Migrations\LoggingPostgresContextModelSnapshot.cs" Link="LoggingPostgresContextModelSnapshot.cs" />
<Compile Include="..\ServiceBricks.Logging.Postgres\Model\LoggingPostgresConstants.cs" Link="LoggingPostgresConstants.cs" />
<Compile Include="..\ServiceBricks.Logging.Postgres\Model\LoggingPostgresContext.cs" Link="LoggingPostgresContext.cs" />
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Microsoft.EntityFrameworkCore.Migrations;
using System;
using Microsoft.EntityFrameworkCore.Migrations;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;

#nullable disable
Expand All @@ -15,7 +16,7 @@ protected override void Up(MigrationBuilder migrationBuilder)
name: "Logging");

migrationBuilder.CreateTable(
name: "LogMessages",
name: "LogMessage",
schema: "Logging",
columns: table => new
{
Expand All @@ -34,11 +35,11 @@ protected override void Up(MigrationBuilder migrationBuilder)
},
constraints: table =>
{
table.PrimaryKey("PK_LogMessages", x => x.Key);
table.PrimaryKey("PK_LogMessage", x => x.Key);
});

migrationBuilder.CreateTable(
name: "WebRequestMessages",
name: "WebRequestMessage",
schema: "Logging",
columns: table => new
{
Expand Down Expand Up @@ -76,32 +77,32 @@ protected override void Up(MigrationBuilder migrationBuilder)
},
constraints: table =>
{
table.PrimaryKey("PK_WebRequestMessages", x => x.Key);
table.PrimaryKey("PK_WebRequestMessage", x => x.Key);
});

migrationBuilder.CreateIndex(
name: "IX_LogMessages_Application_Level_CreateDate",
name: "IX_LogMessage_Application_Level_CreateDate",
schema: "Logging",
table: "LogMessages",
table: "LogMessage",
columns: new[] { "Application", "Level", "CreateDate" });

migrationBuilder.CreateIndex(
name: "IX_WebRequestMessages_Application_UserStorageKey_CreateDate",
name: "IX_WebRequestMessage_Application_UserStorageKey_CreateDate",
schema: "Logging",
table: "WebRequestMessages",
table: "WebRequestMessage",
columns: new[] { "Application", "UserStorageKey", "CreateDate" });
}

/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "LogMessages",
name: "LogMessage",
schema: "Logging");

migrationBuilder.DropTable(
name: "WebRequestMessages",
name: "WebRequestMessage",
schema: "Logging");
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
#pragma warning disable 612, 618
modelBuilder
.HasDefaultSchema("Logging")
.HasAnnotation("ProductVersion", "8.0.8")
.HasAnnotation("ProductVersion", "8.0.10")
.HasAnnotation("Relational:MaxIdentifierLength", 63);

NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
Expand Down Expand Up @@ -65,7 +65,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)

b.HasIndex("Application", "Level", "CreateDate");

b.ToTable("LogMessages", "Logging");
b.ToTable("LogMessage", "Logging");
});

modelBuilder.Entity("ServiceBricks.Logging.EntityFrameworkCore.WebRequestMessage", b =>
Expand Down Expand Up @@ -167,7 +167,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)

b.HasIndex("Application", "UserStorageKey", "CreateDate");

b.ToTable("WebRequestMessages", "Logging");
b.ToTable("WebRequestMessage", "Logging");
});
#pragma warning restore 612, 618
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ public LoggingPostgresContext(DbContextOptions<LoggingPostgresContext> options)
/// <summary>
/// Log Messages
/// </summary>
public virtual DbSet<LogMessage> LogMessages { get; set; }
public virtual DbSet<LogMessage> LogMessage { get; set; }

/// <summary>
/// Web Request Messages
/// </summary>
public virtual DbSet<WebRequestMessage> WebRequestMessages { get; set; }
public virtual DbSet<WebRequestMessage> WebRequestMessage { get; set; }

/// <summary>
/// OnModelCreating.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Version>1.1.0-m</Version>
<Version>1.1.0-n</Version>
<Description>The open source microservices platform. Visit https://ServiceBricks.com to learn more.</Description>
<PackageId>ServiceBricks.Logging.Postgres</PackageId>
<Title>ServiceBricks.Logging.Postgres</Title>
Expand All @@ -23,7 +23,7 @@
<PackageRequireLicenseAcceptance>False</PackageRequireLicenseAcceptance>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/holomodular/ServiceBricks</RepositoryUrl>
<IsPackable>False</IsPackable>
<IsPackable>True</IsPackable>
</PropertyGroup>
<ItemGroup>
<None Include="Resource\readme.md" Pack="True" PackagePath="\" />
Expand All @@ -34,11 +34,11 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="ServiceBricks.Logging.EntityFrameworkCore" Version="1.1.0-m" />
<PackageReference Include="ServiceBricks.Logging.EntityFrameworkCore" Version="1.1.0-n" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="ServiceBricks.Storage.Postgres" Version="1.1.0-m" />
<PackageReference Include="ServiceBricks.Storage.Postgres" Version="1.1.0-n" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

<ItemGroup>
<Compile Include="..\ServiceBricks.Logging.SqlServer\Extensions\ServiceCollectionExtensions.cs" Link="ServiceCollectionExtensions.cs" />
<Compile Include="..\ServiceBricks.Logging.SqlServer\Migrations\20240913102323_LoggingV1.cs" Link="20240913102323_LoggingV1.cs" />
<Compile Include="..\ServiceBricks.Logging.SqlServer\Migrations\20240913102323_LoggingV1.Designer.cs" Link="20240913102323_LoggingV1.Designer.cs" />
<Compile Include="..\ServiceBricks.Logging.SqlServer\Migrations\20241014165858_LoggingV1.cs" Link="20241014165858_LoggingV1.cs" />
<Compile Include="..\ServiceBricks.Logging.SqlServer\Migrations\20241014165858_LoggingV1.Designer.cs" Link="20241014165858_LoggingV1.Designer.cs" />
<Compile Include="..\ServiceBricks.Logging.SqlServer\Migrations\LoggingSqlServerContextModelSnapshot.cs" Link="LoggingSqlServerContextModelSnapshot.cs" />
<Compile Include="..\ServiceBricks.Logging.SqlServer\Model\LoggingSqlServerConstants.cs" Link="LoggingSqlServerConstants.cs" />
<Compile Include="..\ServiceBricks.Logging.SqlServer\Model\LoggingSqlServerContext.cs" Link="LoggingSqlServerContext.cs" />
Expand Down
Loading

0 comments on commit 71d91d0

Please sign in to comment.