mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-13 22:54:14 +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)
|
if (options.IsMain)
|
||||||
{
|
{
|
||||||
|
context.Database.SetCommandTimeout(TimeSpan.FromMinutes(10));
|
||||||
context.Database.Migrate();
|
context.Database.Migrate();
|
||||||
|
context.Database.SetCommandTimeout(TimeSpan.FromSeconds(30));
|
||||||
context.SaveChanges();
|
context.SaveChanges();
|
||||||
|
|
||||||
// clean up residuals
|
// clean up residuals
|
||||||
|
|
|
||||||
|
|
@ -258,7 +258,6 @@ public class Startup
|
||||||
{
|
{
|
||||||
builder.MigrationsHistoryTable("_efmigrationshistory", "public");
|
builder.MigrationsHistoryTable("_efmigrationshistory", "public");
|
||||||
builder.MigrationsAssembly("MareSynchronosShared");
|
builder.MigrationsAssembly("MareSynchronosShared");
|
||||||
builder.CommandTimeout(5 * 60);
|
|
||||||
}).UseSnakeCaseNamingConvention();
|
}).UseSnakeCaseNamingConvention();
|
||||||
options.EnableThreadSafetyChecks(false);
|
options.EnableThreadSafetyChecks(false);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue