PLF-5343: [Migration] gadget upgrade plugin does not work properly