Skip to content

Does adding a new Option field to a native_model struct need a separate version of the model? #98

Answered by vincent-herlemont
Gawdl3y asked this question in Q&A
Discussion options

You must be logged in to vote

@Gawdl3y Yes, indeed, any change in a model must imperatively be managed with a new Rust type, which has the same id of native_model as the old one as well as a version increment. See the example code in the documentation of migrate or from the demo project src-tauri/src/main.rs#L10-L43

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Gawdl3y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants