Fixed the management of missing db upgrades
Added VersionTooSmall error
Added a test for the error VersionTooSmall
Merge pull request #1526 from gem/missing-db-upgrades

Fixed the management of missing db upgrades