Skip to content

Commit b07e0be

Browse files
Centralized Logging API: Migration execution removed from Seed
1 parent 67d258b commit b07e0be

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

CentralizedLoggingApi/DbSeeder.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using CentralizedLoggingApi.Data;
22
using CentralizedLoggingApi.Models;
33
using Microsoft.EntityFrameworkCore;
4+
using System;
45

56
namespace CentralizedLoggingApi
67
{
@@ -10,10 +11,7 @@ public static void Seed(IServiceProvider serviceProvider)
1011
{
1112
using var scope = serviceProvider.CreateScope();
1213
var context = scope.ServiceProvider.GetRequiredService<LoggingDbContext>();
13-
14-
// Run migrations
15-
context.Database.Migrate();
16-
14+
1715
// Seed Applications
1816
if (!context.Applications.Any())
1917
{

0 commit comments

Comments
 (0)