Migration of Nested Content to Block List with Deploy
b
I have a project migrated from Umbraco 8 to latest Umbraco 13 on Umbraco Cloud, where it has a single Nested Content datatype instance I want to replace with Block List instead. I came across this https://docs.umbraco.com/umbraco-deploy/v/12.deploy.latest/deployment-workflow/import-export
Copy code
using Umbraco.Cms.Core.Composing;
using Umbraco.Deploy.Core.Migrators;
using Umbraco.Deploy.Infrastructure.Migrators;

internal class ArtifactMigratorsComposer : IComposer
{
    public void Compose(IUmbracoBuilder builder)
    {
        builder.DeployArtifactMigrators()
            .Append<ReplaceNestedContentDataTypeArtifactMigrator>();

        builder.DeployPropertyTypeMigrators()
            .Append<NestedContentPropertyTypeMigrator>();
    }
}
I tried adding the composer to the project and restarted the application, but the property and datatype still seems to use Nested Content. Anything else which need to be configured?
Does it only happen during import/export? Maybe you could help @andybutland0280
d
We used Usync Migrations and it worked very well https://github.com/Jumoo/uSyncMigrations
b
Yeah, was just thinking of using Deploy, when its an Umbraco Cloud project. It works well and it handled as part of the import process. So with Nested Content property on e.g. a home page node, I can export this and import it again. Now it has changed datatype instance property editor and configuration + updated property data structure on content node.
r
Hi Bjarne! The migrators indeed only run during import and will only migrate content that's imported 👍 For Deploy to correctly migrate both the data type itself and the related content values, you need to export and import both as well, as it won't migrate content values already in the database 😄 And awesome to hear it worked well 💪
b
@Ronald Barendse does Umbraco Deploy offer a migration of the legacy Grid Layout -> Block Grid as well?
464 Views