added migration for internal and external links