Add migration to update access_log FK, fixes #5580