fix: Resolve EF Core shadow property issue and increase migration timeout
This commit is contained in:
@@ -53,7 +53,11 @@ public static class DependencyInjection
|
||||
if (dbDebug) Serilog.Log.Warning("🛠️ EF: Configuring AppDbContext. Target DB: '{Database}'", csBuilder.Database);
|
||||
|
||||
options.UseMySql(csBuilder.ConnectionString, new MySqlServerVersion(new Version(8, 0, 31)),
|
||||
mysql => mysql.EnableRetryOnFailure(3, TimeSpan.FromSeconds(10), null));
|
||||
mysql =>
|
||||
{
|
||||
mysql.EnableRetryOnFailure(3, TimeSpan.FromSeconds(10), null);
|
||||
mysql.CommandTimeout(600); // 10 minutes timeout for large migrations (e.g. ALTER TABLE Trades)
|
||||
});
|
||||
});
|
||||
|
||||
// Repositories
|
||||
|
||||
Reference in New Issue
Block a user