diff --git a/API_SQLuedo/API/Program.cs b/API_SQLuedo/API/Program.cs index e21ac69..c85113e 100644 --- a/API_SQLuedo/API/Program.cs +++ b/API_SQLuedo/API/Program.cs @@ -111,6 +111,10 @@ var app = builder.Build(); using (var scope = app.Services.CreateScope()) { var services = scope.ServiceProvider; + // Création base de données via les migrations + await using var dbContext = services.GetRequiredService(); + await dbContext.Database.MigrateAsync(); + var userManager = services.GetRequiredService>(); try