Versioned Schema Evolution

Stamp every serialized artifact with a schema version and evolve the format over time without breaking data that was already persisted — detect the version on load, migrate old shapes forward, and keep readers for old versions working. Use this whenever you design or change a serialization format (JSON, SQLite rows, pickle, .npy), whenever you load data that an older version of the code may have written, whenever you add or remove a field from something already on disk, and whenever a "load" path has to cope with more than one shape of stored data. Triggers — "schema migration", "backward compatible", "version mismatch", "old saved data", "from_dict", "deserialize", "we changed the format". Push to use this whenever serialized data outlives the exact code version that wrote it.

annatchijova 4405f25 3 files · 11.0 KB Updated

File contents

annatchijova/SKILLS/tree/main/versioned-schema-evolution commit 4405f2565e

Frequently asked questions

npx skillmds@latest add annatchijova/versioned-schema-evolution