change type migrations and add index to passages