feat(audit)!: ScadaBridge C5 — collapse central dbo.AuditLog to 10 canonical cols + persisted computed cols; CollapseAuditLogToCanonical migration; repo writes canonical directly (Task 2.5)
This commit is contained in:
@@ -38,6 +38,12 @@ public class SqliteTestDbContext : ScadaBridgeDbContext
|
||||
.ValueGeneratedNever();
|
||||
});
|
||||
|
||||
// Note (C5 / Task 2.5): the central dbo.AuditLog persisted computed columns
|
||||
// (JSON_VALUE-based) are neutralized for non-SQL-Server providers inside
|
||||
// ScadaBridgeDbContext.OnModelCreating itself, so every SQLite test context —
|
||||
// including ones that construct ScadaBridgeDbContext directly rather than via
|
||||
// this helper — gets the strip. Nothing to do here.
|
||||
|
||||
// Convert DateTimeOffset to ISO 8601 string for SQLite so ORDER BY works
|
||||
var converter = new ValueConverter<DateTimeOffset, string>(
|
||||
v => v.UtcDateTime.ToString("o"),
|
||||
|
||||
Reference in New Issue
Block a user