8764 fix

Tested upgrade with database that has timed view stats.