Upgrading¶
Locate the version of interest, eg
v0.0.8, from the Github Releases pageStop the server
From the root directory:
Replace the source code by running:
git checkout tags/v0.0.8Migrate the database by running:
python manage.py migrate
Start the server
Rolling back¶
Locate the version of interest, eg
v0.0.7, from the Github Releases pageClick on the tag icon at the top to view the repository tree
Click througfh to the
core/migrationsdirectoryMake a note of the numeric prefix from the latest migration file name, eg
0011for0011_drop_jhe_user_permissions_groups.pyStop the server
In case of data loss, make a copy of your database by running the psql command:
CREATE DATABASE jhe_backup WITH TEMPLATE jhe_original OWNER your_user;
From the root directory:
Roll back the database by running:
python manage.py migrate core 0011Replace the source code by running:
git checkout tags/v0.0.7
Start the server