db: Fixed the upgrade to DB version 20 so that it doesn't use a `Repository` object, but sticks to SQL instead.
db: Fixed the upgrade to DB version 20 so that it doesn't use a `Repository` object, but sticks to SQL instead.

This was preventing upgrading from 0.10.3 with 0.12dev.

Closes #9252.


git-svn-id: 0d96b0c1a6983ccc08b3732614f4d6bfcf9cbb42@9517 af82e41b-90c4-0310-8c96-b1721e28e2e2

rbaumg/trac,rbaumg/trac,rbaumg/trac,rbaumg/trac