Added database migration for contrib.contenttypes.

refs #22170.