uSync migration custom property to Something else
# help-with-umbraco
m
I have created a SyncPropertyMigrator do I need to add this via a composer or should it be picked up? And does it run when creating the MigrationPack?
Copy code
[SyncMigrator("OldAlias")]
public class FatTextStringCollectionMigrator : SyncPropertyMigratorBase
{
    public override string GetEditorAlias(SyncMigrationDataTypeProperty propertyModel, SyncMigrationContext context) => Constants.PropertyEditors.Aliases.MultipleTextstring;

    public override object? GetConfigValues(SyncMigrationDataTypeProperty dataTypeModel, SyncMigrationContext context) => new MultipleTextStringConfiguration();

    public override string? GetContentValue(SyncMigrationContentProperty contentProperty, SyncMigrationContext context)
    {
.....
k
Hi, It should be picked up, it runs during the 'comversion' process, so after you have uploaded a pack and are running the conversion.
depending on the version you are migrating from, you may want to specify the version as an attribute e.g to run on both a v7 and a v8 migration you would add.
Copy code
[SyncMigratorVersion(7,8)]
*the default is v7 only *
m
Thanks 🙂 that got it