_dataTypeService.Save(dataType); doesn't raise Dat...
# help-with-umbraco
m
I'm composing a migration plan that creates a datatype, but then the save method doesn't seem to raise a notification event. Even though
Copy code
[ComposeAfter(typeof(DataTypeSavingComposer))]
public class HeroWidgetInnerOverlayStrengthMigrationComposer : IComposer
{
    public void Compose(IUmbracoBuilder builder)
    {
        builder.AddNotificationHandler<UmbracoApplicationStartedNotification, HeroWidgetInnerOverlayStrengthMigration>();
    }
}
Am I missing something or just not possible?
Probably should have added some context.. have a migration that adds one datatype and updates a doctype, which all works fine, either as a packagemigration, or a migrationplan however, we've also got uSync set to import on startup. So the migration runs makes it's changes.. but then uSync config files aren't updated as relies on the datatype/content saved notifications.. hence uSync then imports and undoes the changes that the migration did.
8 Views