Add legacy support to report.php
Add migration for hash