diff --git a/src/Infrastructure/Data/CatalogContextSeed.cs b/src/Infrastructure/Data/CatalogContextSeed.cs index 7f0722a..c2fb2f5 100644 --- a/src/Infrastructure/Data/CatalogContextSeed.cs +++ b/src/Infrastructure/Data/CatalogContextSeed.cs @@ -15,8 +15,11 @@ namespace Microsoft.eShopWeb.Infrastructure.Data int retryForAvailability = retry.Value; try { - // TODO: Only run this if using a real database - // catalogContext.Database.Migrate(); + if (catalogContext.Database.IsSqlServer()) + { + catalogContext.Database.Migrate(); + } + if (!await catalogContext.CatalogBrands.AnyAsync()) { await catalogContext.CatalogBrands.AddRangeAsync(