I don't believe you need to run any migration script. My Dendron vaults live on Dropbox, and I connect to them from two different Macs and my iPhone.
I haven't specifically tried doing the same with a vault in iCloud, but I believe it would be similar. I just remember manually pointing VSCode to the appropriate place when I was setting Dendron up on the second Mac.