Réussi! - échec : 0, réussite : 2, ignorée(s) : 0, total : 2, durée : 444 ms
This commit is contained in:
parent
6a59f776d5
commit
ffb7cad00a
15 changed files with 181 additions and 33 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue