Add indexes to build fields on versions