Fix #5233: Error on the MigrationStartupTask

This commit is contained in:
nicolas.dorier
2023-09-02 23:12:25 +09:00
parent 1f9fbbee22
commit b32e0e7cce

View File

@@ -214,7 +214,8 @@ namespace BTCPayServer.Hosting
var typeMapping = t.EntityTypeMappings.Single();
var query = (IQueryable<object>)otherContext.GetType().GetMethod("Set", new Type[0])!.MakeGenericMethod(typeMapping.EntityType.ClrType).Invoke(otherContext, null)!;
if (t.Name == "WebhookDeliveries" ||
t.Name == "InvoiceWebhookDeliveries")
t.Name == "InvoiceWebhookDeliveries" ||
t.Name == "StoreRoles")
continue;
Logger.LogInformation($"Migrating table: " + t.Name);
List<PropertyInfo> datetimeProperties = new List<PropertyInfo>();