migrations redefined and enhanced