mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-12 18:07:22 +01:00
stupid command timeout
This commit is contained in:
parent
8ad4205a4a
commit
f93fd35787
2 changed files with 2 additions and 1 deletions
|
|
@ -21,7 +21,9 @@ public class Program
|
|||
|
||||
if (options.IsMain)
|
||||
{
|
||||
context.Database.SetCommandTimeout(TimeSpan.FromMinutes(10));
|
||||
context.Database.Migrate();
|
||||
context.Database.SetCommandTimeout(TimeSpan.FromSeconds(30));
|
||||
context.SaveChanges();
|
||||
|
||||
// clean up residuals
|
||||
|
|
|
|||
|
|
@ -258,7 +258,6 @@ public class Startup
|
|||
{
|
||||
builder.MigrationsHistoryTable("_efmigrationshistory", "public");
|
||||
builder.MigrationsAssembly("MareSynchronosShared");
|
||||
builder.CommandTimeout(5 * 60);
|
||||
}).UseSnakeCaseNamingConvention();
|
||||
options.EnableThreadSafetyChecks(false);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue