[#49108153] Add metadata_status field to States and related data migration