From 85a9482fb594648f94f41241f096023f78252774 Mon Sep 17 00:00:00 2001 From: enisn Date: Thu, 25 Nov 2021 16:09:19 +0300 Subject: [PATCH] Fix catalog history table naming --- .../EntityFrameworkCore/CatalogServiceDbContextFactory.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/services/catalog/src/EShopOnAbp.CatalogService.EntityFrameworkCore/EntityFrameworkCore/CatalogServiceDbContextFactory.cs b/services/catalog/src/EShopOnAbp.CatalogService.EntityFrameworkCore/EntityFrameworkCore/CatalogServiceDbContextFactory.cs index 37e6ae87..55b44780 100644 --- a/services/catalog/src/EShopOnAbp.CatalogService.EntityFrameworkCore/EntityFrameworkCore/CatalogServiceDbContextFactory.cs +++ b/services/catalog/src/EShopOnAbp.CatalogService.EntityFrameworkCore/EntityFrameworkCore/CatalogServiceDbContextFactory.cs @@ -16,7 +16,12 @@ namespace EShopOnAbp.CatalogService.EntityFrameworkCore var configuration = BuildConfiguration(); var builder = new DbContextOptionsBuilder() - .UseNpgsql(configuration.GetConnectionString(CatalogServiceDbProperties.ConnectionStringName)); + .UseNpgsql( + configuration.GetConnectionString(CatalogServiceDbProperties.ConnectionStringName), + b => + { + b.MigrationsHistoryTable("__CatalogService_Migrations"); + }); return new CatalogServiceDbContext(builder.Options); }