[OE-4052] Added migration for setting the required property on relevant element types