Move Content during uSync Migration
# help-with-umbraco
t
Hi all, Using uSync Migrations to migrate a site from v8 to v13. The site is undergoing quite a transformation with content being reorganized into a more logic tree structure. During the uSync migration is there a way to move a content node? Below is an example: From
Copy code
Home -> Products -> [Node Currently Resides]
To
Copy code
Home -> Products -> Product Category -> [Node should reside]
Thanks!
Perhaps @Kevin Jump could quickly answer?
m
just update the uSync config file to reference the correct parent? (either before or after the conversion during migration) should be able to do via powershell script if it's more than a few... or use another property that gives you the category?
t
@Mike Chambers its around id say 1k nodes
you lost me on
(either before or after the conversion during migration)
when you run the migration, is there no way to just tap into the uSync file? I know it gives the datatype and its configs etc for a custom migrator?
m
just offering a path of least resistance. 😉
t
OR are you saying forgo the migratiosn and run a custom powershell script to change the parent to the right key?
m
yep that..
then either run your migration after you've updated the parent in the v8 usync config files.. or do the migration and then update the migration/configs prior to import.. or even do the migration import and then clean export to generate the v9 new site configs and update parents then...
t
Logically would it make more sense to update the parent key, then migrate all the things, then import so that at the end of pressing the button we come out clean?
m
guess whatever suits you.. if you've moved prior to the migration on the v8 site.. then you can just repeat the migration on failures.. rahter than having to repeat the parent update too. ... but if it's all scripted then horses for courses.
t
Never heard that saying before lol
ill have to see how indepth the power shell script is
@Mike Chambers one thing i just thought of, are you saying change the key before or after you generate the pack?
after seems problematic
m
depends if you only have your new product category nodes in the new site.. then you have no parent guids in the v8 site. 🙂
p
I'm not sure if you can do that out of the box with uSync migrations but you should be able to do it easy enough programmatically so that it is repeatable each time you run the migration. Write something to do it either before or after the migration. In my case I am doing as much of that stuff as I can before the migration.
93 Views