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); }