Fix missing and premature function calls when updating the database
Review Request #12285 — Created May 16, 2022 and submitted
./contrib/internal/prepare-dev.pyto prepare the development
environment failed during the database set up phase due to undefined functions
and a missing database table error during pre-upgrade tasks. This change imports
the missing functions and ensures that pre-upgrade tasks are not run too early.
Ran tests in
reviewboard/cmdline/testsand successfully ran