Handle migration dependencies