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

  1. Install the new pw binary (e.g. make && sudo make install).

  2. Run pending database migrations:

    $ pw db sync
    
  3. 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.