Tutor: Upgrade to Nutmeg error because of uncreated tables

Upgrading from Maple to Tutor with:

pip install --upgrade "tutor[full]"
tutor local quickstart

gives an error, because scripts like

./manage.py lms backpopulate_user_tours

are being run before tables referenced in the script have been created (e.g. table user_tours_usertour).

Only way to upgrade is:

pip install --upgrade "tutor[full]"
tutor config save
tutor local quickstart
tutor local upgrade --from=maple

e.g. running the upgrade scripts after the database migrations!

1 Like