From 461b33a69f5954a066a83e356dd536640615c5be Mon Sep 17 00:00:00 2001 From: Olga Nemt Date: Fri, 20 Dec 2024 11:27:11 +0500 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B1=D1=80=D0=B0=D0=BD=20adminpack?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...05317_Init.Designer.cs => 20241220062251_Init.Designer.cs} | 4 +--- .../{20241218105317_Init.cs => 20241220062251_Init.cs} | 3 --- .../Migrations/PersistencePostgresContextModelSnapshot.cs | 2 -- .../PersistencePostgresContext.cs | 4 ---- 4 files changed, 1 insertion(+), 12 deletions(-) rename DD.Persistence.Database.Postgres/Migrations/{20241218105317_Init.Designer.cs => 20241220062251_Init.Designer.cs} (98%) rename DD.Persistence.Database.Postgres/Migrations/{20241218105317_Init.cs => 20241220062251_Init.cs} (98%) diff --git a/DD.Persistence.Database.Postgres/Migrations/20241218105317_Init.Designer.cs b/DD.Persistence.Database.Postgres/Migrations/20241220062251_Init.Designer.cs similarity index 98% rename from DD.Persistence.Database.Postgres/Migrations/20241218105317_Init.Designer.cs rename to DD.Persistence.Database.Postgres/Migrations/20241220062251_Init.Designer.cs index c9979d7..02a25ce 100644 --- a/DD.Persistence.Database.Postgres/Migrations/20241218105317_Init.Designer.cs +++ b/DD.Persistence.Database.Postgres/Migrations/20241220062251_Init.Designer.cs @@ -12,7 +12,7 @@ using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; namespace DD.Persistence.Database.Postgres.Migrations { [DbContext(typeof(PersistencePostgresContext))] - [Migration("20241218105317_Init")] + [Migration("20241220062251_Init")] partial class Init { /// @@ -20,11 +20,9 @@ namespace DD.Persistence.Database.Postgres.Migrations { #pragma warning disable 612, 618 modelBuilder - .UseCollation("en_US.utf8") .HasAnnotation("ProductVersion", "8.0.10") .HasAnnotation("Relational:MaxIdentifierLength", 63); - NpgsqlModelBuilderExtensions.HasPostgresExtension(modelBuilder, "adminpack"); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); modelBuilder.Entity("DD.Persistence.Database.Entity.DataSourceSystem", b => diff --git a/DD.Persistence.Database.Postgres/Migrations/20241218105317_Init.cs b/DD.Persistence.Database.Postgres/Migrations/20241220062251_Init.cs similarity index 98% rename from DD.Persistence.Database.Postgres/Migrations/20241218105317_Init.cs rename to DD.Persistence.Database.Postgres/Migrations/20241220062251_Init.cs index 95f33d2..03a8c43 100644 --- a/DD.Persistence.Database.Postgres/Migrations/20241218105317_Init.cs +++ b/DD.Persistence.Database.Postgres/Migrations/20241220062251_Init.cs @@ -11,9 +11,6 @@ namespace DD.Persistence.Database.Postgres.Migrations /// protected override void Up(MigrationBuilder migrationBuilder) { - migrationBuilder.AlterDatabase() - .Annotation("Npgsql:PostgresExtension:adminpack", ",,"); - migrationBuilder.CreateTable( name: "ChangeLog", columns: table => new diff --git a/DD.Persistence.Database.Postgres/Migrations/PersistencePostgresContextModelSnapshot.cs b/DD.Persistence.Database.Postgres/Migrations/PersistencePostgresContextModelSnapshot.cs index 077f9d2..4c66e90 100644 --- a/DD.Persistence.Database.Postgres/Migrations/PersistencePostgresContextModelSnapshot.cs +++ b/DD.Persistence.Database.Postgres/Migrations/PersistencePostgresContextModelSnapshot.cs @@ -17,11 +17,9 @@ namespace DD.Persistence.Database.Postgres.Migrations { #pragma warning disable 612, 618 modelBuilder - .UseCollation("en_US.utf8") .HasAnnotation("ProductVersion", "8.0.10") .HasAnnotation("Relational:MaxIdentifierLength", 63); - NpgsqlModelBuilderExtensions.HasPostgresExtension(modelBuilder, "adminpack"); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); modelBuilder.Entity("DD.Persistence.Database.Entity.DataSourceSystem", b => diff --git a/DD.Persistence.Database.Postgres/PersistencePostgresContext.cs b/DD.Persistence.Database.Postgres/PersistencePostgresContext.cs index 6f9bc6a..65a9066 100644 --- a/DD.Persistence.Database.Postgres/PersistencePostgresContext.cs +++ b/DD.Persistence.Database.Postgres/PersistencePostgresContext.cs @@ -13,10 +13,6 @@ public partial class PersistencePostgresContext : PersistenceDbContext protected override void OnModelCreating(ModelBuilder modelBuilder) { - modelBuilder - //.HasPostgresExtension("adminpack") - .HasAnnotation("Relational:Collation", "en_US.utf8"); - base.OnModelCreating(modelBuilder); }