I have a ContentType which contains a boolean to specify whether a background color should be set or not.
Now I would like to give the editors the option to choose the background color through a textfield.
Therefor I would like to migrate the boolean value from the old field to a specific hex color in the new field.
I've looked at MigrationStep but the two properties must be convertible between each other.
I don't like the option keeping the boolean field around on the ContentType, but hiding it for the editor.
Any suggestions would greatly be appreciated.
In cases like this, I would create an admin tool that can be run after the deploy where I add the new property
In the tool:
In the next deploy, remove the checkbox.
Thanks for your suggestion. This will definitely do the job.
Is there any option to hook into any internal migration functionality in EpiServer?
Sort of like the MigrationStep, or the commerce IMigrationStep.
Frankly I think you can use a scheduled job to do that...