Static Checking of Canister Upgrade Compatibility (formerly "Canister Safe Upgrades")

Hi,

Thanks for the reply. Here I shared a video link for your reference. Hope it will be useful to you to understand the issue.

https://www.vidline.com/share/V0766HJWDL/b8058b3570cff1583a356639880b5078

Please check and share your thoughts. Thanks again for the support.

It also appears that you change the data type for your stable var records. First question, does this canister carry production data? If so, you should think about a migration strategy that will be able to upgrade past stable data. If not, you better come up with a sound versioned strategy that will spare you from losing data in the future. E.g. a variant type that carries the version and a distinct type for each: { #v1 : [Job_v1]; #v2 : [Job] } or similar.

1 Like

I’m on vacation and don’t have my laptop handy, but these links might help explain what is going on.