Path: redb/redb.Core/Models/RedbSchemaProblem.cs Snapshot: redb, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages. License: Apache-2.0. Repository: https://github.com/redbase-app/redb Page: https://redbase.app/src/dev-2026-12-06/redb/redb.Core/Models/RedbSchemaProblem.cs ---- using System.Collections.Generic; namespace redb.Core.Models { /// Kinds of . public enum RedbSchemaProblemKind { /// /// A root field of a scheme exists more than once in _structures, and the copies could not be merged /// automatically because more than one holds values. Left by nodes that synchronized one scheme at the same /// moment before the schema lock (PostgreSQL, SQLite). Resolved by hand: UPGRADING.md, "Duplicate root /// structures". /// DuplicateRootStructure = 1, } /// /// A problem of the database schema that does not stop the service but needs a person: it is logged as an error at /// every start until it is resolved, and listed by for health checks. /// public sealed class RedbSchemaProblem { /// Creates a problem. public RedbSchemaProblem(RedbSchemaProblemKind kind, long schemeId, string schemeName, string field, IReadOnlyList structureIds, string message) { Kind = kind; SchemeId = schemeId; SchemeName = schemeName; Field = field; StructureIds = structureIds; Message = message; } /// What is wrong. public RedbSchemaProblemKind Kind { get; } /// Id of the scheme in _schemes. public long SchemeId { get; } /// Name of the scheme. public string SchemeName { get; } /// Name of the field concerned. public string Field { get; } /// Ids of the structures concerned, every copy of the field. public IReadOnlyList StructureIds { get; } /// The text that is logged: what is wrong and where the fix is described. public string Message { get; } /// public override string ToString() => Message; } }