uSync Migrations - Legacy Media Picker > MediaPick...
# help-with-umbraco
r
Hey, Before I start coding this, just want to make sure this isn't available as part of uSync migrations already? Essentially as we migrate v8 to v13 we want to update all the properties using the legacy media picker to use the new one (Umbraco.MediaPicker3) instead. Many thanks!
k
Hi, The media picker should migrate in uSync.Migrations (well at least we have a migrator for it https://github.com/Jumoo/uSyncMigrations/blob/phase6/clean-up/uSync.Migrations.Migrators/Core/MediaPickerMigrator.cs) there are lots of subtle 'legacy' versions of the media picker because it changes a few times (hence why its v3) So can't quite remember if this migrates from the super orginal one or not.
r
Hey Kevin, Thanks. The Legacy Media picker migrates perfectly. . However, I’m trying to convert it to the new one as part of the migration. Mostly as we need the crops in the Content Delivery API, which don’t appear using the legacy picker. Giving it a go now, just wondered if anyone had done it previously. Thanks for your hard work on this project btw, lifesaver!
Feel like I’m missing something I want to convert the Umbraco.MediaPicker to Umbraco.MediaPicker3 In the migration plan I’ve added: UmbConstants.PropertyEditors.Aliases.MediaPicker, "MediaPickerMigrator" } However, despite having properties using the Umbraco.MediaPicker the MediaPickerMigrator code doesn’t run? Feel like I’m missing a key part here
Found the issue. I needed to add [SyncMigratorVersion(7, 8)] At the top of the migrator file
2 Views