Is school a collective or a common noun?

The noun school is both a collective noun and a common noun.

A common noun is a word for any person, place, or thing; school is a thing, a word for any school anywhere.

A collective noun is a word to group a noun for like things; the collective noun school is used as a collective noun for a school of fish or a school of thought.