Fix missing and premature function calls when updating the database

Review Request #12285 — Created May 16, 2022 and submitted — Latest diff uploaded

Information

Review Board
release-5.0.x

Reviewers

Running ./contrib/internal/prepare-dev.py to 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/tests and successfully ran
./contrib/internal/prepare-dev.py.

Commits

Files