Fixing AutomaticDataMigrations so it doesn't log an expected error when creating the Distributed Lock table

This commit is contained in:
Benedek Farkas
2025-10-16 15:58:51 +02:00
parent 287b68b86d
commit 3f56eca08d

View File

@@ -95,8 +95,6 @@ namespace Orchard.Data.Migration {
// Workaround to avoid some Transaction issue for PostgreSQL.
if (_shellSettings.DataProvider.Equals("PostgreSql", StringComparison.OrdinalIgnoreCase)) {
_transactionManager.RequireNew();
distributedLockSchemaBuilder.CreateSchema();
return;
}
distributedLockSchemaBuilder.CreateSchema();