Skip to content

How to rename variables while maintaining compatibility? #1980

Answered by sisp
34j asked this question in Q&A
Discussion options

You must be logged in to vote

I think you could use a migration similar to how it's done in this test, but you would change the answer variable instead of the value. Make sure to update all variable occurrences in your template accordingly and set the version field in the migration config to your template's next release version. Unlike in the test case, force reading and writing the answers file data as UTF-8 for best cross-OS compatibility (see #1970).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by 34j
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