Skip to content
This repository has been archived by the owner on Jan 27, 2024. It is now read-only.

Examine common migration patterns #3

Open
seagreen opened this issue May 18, 2017 · 0 comments
Open

Examine common migration patterns #3

seagreen opened this issue May 18, 2017 · 0 comments

Comments

@seagreen
Copy link
Owner

Users will often want to expand Plate schemas while still keeping backwards compatibility with old data. Lets examine some of the ways this can play out.

Adding a new field to a sum type

100% backward compatibility with old data. Nice.

Adding a new field to a product type

Currently this always breaks backwards compatibility. We could avoid some of this in two ways: either by allowing optional fields to be missing or by allowing defaults to be set. This ties in to issue #2.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant