Skip to content

Commit d0508e3

Browse files
committed
docs: clarify migration requirements and limitations
Mention that patchwork 3.x or later is required for the export tool, and that non-standard database customizations (extra columns or tables) are silently ignored during export. Signed-off-by: Robin Jarry <robin@jarry.cc>
1 parent d766c0b commit d0508e3

1 file changed

Lines changed: 19 additions & 4 deletions

File tree

‎docs/deployment/migration.rst‎

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,30 @@ Migrating from Django to Go
77
===========================
88

99
This guide walks through migrating an existing Django-based Patchwork
10-
installation (3.x or earlier) to Patchwork 4.0.
10+
installation to Patchwork 4.0.
11+
12+
.. important::
13+
14+
The export tool requires a **patchwork 3.x** database schema or later (Django
15+
migration 0042+). If you are running an older version, upgrade your Django
16+
installation to the latest 3.x first, then proceed with the migration.
1117

1218

1319
Overview
1420
--------
1521

16-
Patchwork 4.0 is a complete rewrite in Go. The database schema is compatible
17-
but the deployment model is fundamentally different: a single ``pw`` binary
18-
replaces Django, gunicorn/uwsgi, virtualenvs, and management commands.
22+
Patchwork 4.0 is a complete rewrite in Go. The deployment model is fundamentally
23+
different: a single ``pw`` binary replaces Django, gunicorn/uwsgi, virtualenvs,
24+
and management commands.
25+
26+
The database schema is similar but not identical, which is why data must be
27+
exported and re-imported rather than used in place.
28+
29+
All 3.x schema variations are handled automatically (missing columns in older
30+
releases get sensible defaults, and tables added after 3.2 are skipped if
31+
absent). Databases with non-standard customizations (extra columns or additional
32+
tables) should also work (to some extent): the export procedure only reads known
33+
columns and silently ignores everything else.
1934

2035

2136
Command Mapping

0 commit comments

Comments
 (0)