I'm getting this error when executing the upgrade from 2.30 to 2.40.

Invalid object name 'Language'.