Adds check for a dry run in migration 0020
Adds an anonymous user check