diff --git a/src/ScadaLink.AuditLog/Site/SqliteAuditWriter.cs b/src/ScadaLink.AuditLog/Site/SqliteAuditWriter.cs index f38d99f..49a6d86 100644 --- a/src/ScadaLink.AuditLog/Site/SqliteAuditWriter.cs +++ b/src/ScadaLink.AuditLog/Site/SqliteAuditWriter.cs @@ -147,8 +147,9 @@ public class SqliteAuditWriter : IAuditWriter, ISiteAuditQueue, IAsyncDisposable } /// - /// Audit Log #23 (ExecutionId): adds a column to AuditLog only when - /// it is not already present. SQLite lacks ADD COLUMN IF NOT EXISTS, + /// Audit Log #23: additively adds a column to AuditLog only when + /// it is not already present (used for ExecutionId and + /// ParentExecutionId). SQLite lacks ADD COLUMN IF NOT EXISTS, /// so the schema is probed via PRAGMA table_info first. Idempotent — /// safe to run on every . Mirrors /// StoreAndForwardStorage.AddColumnIfMissingAsync; kept synchronous diff --git a/src/ScadaLink.ConfigurationDatabase/Repositories/AuditLogRepository.cs b/src/ScadaLink.ConfigurationDatabase/Repositories/AuditLogRepository.cs index 76d4b47..33dad3a 100644 --- a/src/ScadaLink.ConfigurationDatabase/Repositories/AuditLogRepository.cs +++ b/src/ScadaLink.ConfigurationDatabase/Repositories/AuditLogRepository.cs @@ -581,8 +581,9 @@ VALUES /// and joining edge.ParentExecutionId = chain.ExecutionId to /// enumerate every descendant. Recursing over edges rather than raw rows /// keeps the recursion one path wide per execution. It is bounded by - /// OPTION (MAXRECURSION 32) — corrupt cyclic data raises a - /// (msg 530) rather than spinning. + /// OPTION (MAXRECURSION ...) at + /// — corrupt cyclic data raises a (msg 530) + /// rather than spinning. /// /// /// The chain's full execution-id set is every edge's ExecutionId