Upgrading
This document covers upgrading between Patchwork 4.x releases. For migrating from the Django-based Patchwork (3.x and earlier) to 4.0, see Migrating from Django to Go.
Before Upgrading
Always back up your database before upgrading:
$ pg_dump patchwork > patchwork-backup.sql
Upgrade Steps
Install the new
pwbinary (e.g.make && sudo make install).Run pending database migrations:
$ pw db sync
Restart the services:
$ sudo systemctl restart pw-http pw-ingress
That’s it. There are no static files to collect, no Python dependencies to update, and no virtual environments to rebuild.