PAHMA-964: Add script to reindex relations.