Réussi! - échec : 0, réussite : 2, ignorée(s) : 0, total : 2, durée : 444 ms
This commit is contained in:
@ -72,20 +72,7 @@ namespace nuget_host
|
||||
{
|
||||
app.UseExceptionHandler("/Home/Error");
|
||||
app.UseHsts();
|
||||
try
|
||||
{
|
||||
dbContext.Database.Migrate();
|
||||
}
|
||||
catch (TargetInvocationException ex)
|
||||
{
|
||||
if (ex.InnerException is InvalidOperationException)
|
||||
// nothing to do ?
|
||||
{
|
||||
// TODO (or not) Hit the developper
|
||||
}
|
||||
else throw ex;
|
||||
}
|
||||
|
||||
dbContext.Database.Migrate();
|
||||
}
|
||||
|
||||
app.UseStaticFiles();
|
||||
|
Reference in New Issue
Block a user