Skip to content

Commit 1898338

Browse files
add migration
1 parent e6d6360 commit 1898338

8 files changed

Lines changed: 495 additions & 418 deletions

File tree

docs/content/en/open_source/upgrading/2.53.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,13 @@ The switch to `django-pghistory` provides several advantages:
3131
### Migration Notes
3232

3333
- A one-time data migration will take place to populate the `django-pghistory` tables with the initial snapshot of the tracked models.
34+
- The migration is designed to be fail-safe: if it fails for some reason, it will continue where it left off.
35+
- The migration can also be performed up front via
36+
- `docker compose exec uwsgi bash -c "python manage.py pghistory_backfill_fast"`, or
37+
- `docker compose exec uwsgi bash -c "python manage.py pghistory_backfill_simple"`, or
38+
- `docker compose exec uwsgi bash -c "python manage.py pghistory_backfill"`
3439

40+
The backfill migration is not mandatory to succeed. If it fails for some reason, the only side effect will be that the first auditlog diff will contain all fields of an object instead just the changed fields.
3541
---
3642

3743
Check the [Release Notes](https://github.com/DefectDojo/django-DefectDojo/releases/tag/2.53.0) for the complete contents of this release.

0 commit comments

Comments
 (0)