Add migration task to common migrations and main migrations