You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(types): add schema versioning for strict document collections
Introduce `added_at_version: u16` on `ColumnDef` to record the schema
version at which a column was added. Columns present at collection
creation default to version 1.
Add a `DroppedColumn` tombstone struct that captures the full column
definition, its ordinal position, and the schema version at which it
was removed. `StrictSchema` now carries a `dropped_columns` list so
the physical layout of any historical tuple version can be
reconstructed without row migration.
New helpers on `StrictSchema`:
- `schema_for_version(v)` — builds a sub-schema matching the physical
layout of tuples written at version `v` by excluding later-added
columns and re-inserting dropped columns at their original positions.
- `parse_default_literal(expr)` — evaluates a SQL DEFAULT expression
(string, boolean, integer, float, NULL) to a `Value` at read time.
`DroppedColumn` is re-exported from `nodedb-types::columnar`.
0 commit comments