Skip to content

Commit

Permalink
Merge branch 'master' into update/candid-067025a8c55c2b843fce40f6ba38…
Browse files Browse the repository at this point in the history
…ffe6dd543b84
  • Loading branch information
ggreif authored Dec 18, 2024
2 parents 4720d2a + 9ae06e3 commit dc8c541
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/repo_policies/BOT_APPROVED_FILES
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

Changelog.md
doc/docusaurus/package-lock.json

nix/sources.json
2 changes: 1 addition & 1 deletion doc/md/canister-maintenance/compatibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ Adding a new record field to the type of existing stable variable is not support

### Solution

To resolve this issue, an [explicit](#explicit-migration) is needed:
To resolve this issue, an [explicit migration](#explicit-migration) is needed:

1. You must keep the old variable `map` with the same structural type. However, you are allowed to change type alias name (`Card` to `OldCard`).
2. You can introduce a new variable `newMap` and copy the old state to the new one, initializing the new field as needed.
Expand Down

0 comments on commit dc8c541

Please sign in to comment.