Inject the old and new versions to the module upgrade method.