We have a module that requires an additional field be added to the BlogPost ContentType. Doing this manually through the admin works fine however I'd like the module's migration to do this.
I have the following but it doesn't work and the field doesn't get added to the BlogPost:
ContentDefinitionManager.AlterPartDefinition("BlogPost", builder =>
builder.WithField("DisplayName", cfg =>