Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Umbraco.MediaPicker (legacy) not converted to Umbraco.MediaPicker3 #270

Open
creativesuspects opened this issue May 23, 2024 · 0 comments
Open

Comments

@creativesuspects
Copy link

creativesuspects commented May 23, 2024

I've generated a Migration Pack in Umbraco 8.18.14 using uSync.Migrations. When running the conversion in Umbraco 10.8.6 with uSync.Migrations v4.0.0-phase.5.1 the legacy media pickers (Umbraco.MediaPicker) are not being converted to Umbraco.MediaPicker3, even though this is a default migrator that comes with the package.

Is there anything I need to do to enable this conversion?

When I copy the code for the MediaPickerMigrator from GitHub and add it to my project (as follows) the conversion does kick in, but this only works when I add the [SyncMigratorVersion(8)] attribute.

[SyncMigrator("Umbraco.MediaPicker")]
[SyncMigrator("Umbraco.MediaPicker2")]
[SyncMigrator("Umbraco.MultiMediaPicker")]
[SyncDefaultMigrator]
[SyncMigratorVersion(8)]
public class MediaPickerMigrator : SyncPropertyMigratorBase
{
    [no changes to this code]
}

By the way, the package works wonders when converting NestedContent to BlockList. 🥳

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant