Skip to content

Upgrade the apps that own database tables - #256

Merged
abe-101 merged 1 commit into
mainfrom
upgrade-table-apps
Oct 13, 2026
Merged

abe-101 merged 1 commit into
mainfrom
upgrade-table-apps

Conversation

@abe-101

@abe-101 abe-101 commented Oct 13, 2026

Copy link
Copy Markdown
Owner

Step 4 of the dependency upgrades: the three third-party apps with tables in our database. None of them changes the schema.

App From → To Migrations
django-allauth 65.12.0 → 65.19.7 No new migrations. Same 23 migration names, so production's migration records stay valid.
djangorestframework 3.15.2 → 3.18.3 Byte-identical (4 files)
django-celery-beat 2.8.1 → 2.9.0 Byte-identical (21 files)

djangorestframework-stubs moves to 3.18.1 with DRF, as held back in #251.

allauth's edited migrations

Five of allauth's existing migration files changed between versions. I diffed each one:

  • account/0001, 0002 and socialaccount/0001: unique_together=set([...]) → {...}. Style only.
  • account/0006 and 0008: data migrations now call .using(db_alias), so they work with multiple databases. Production applied both long ago, so they won't run again.

Verified

  • makemigrations --check (all apps) and migrate --plan on an existing database: nothing to do.
  • pytest: 128 passed with deprecations treated as errors, golden files included.
  • mypy: clean with the 3.18 DRF stubs.
  • manage.py check: no issues.

Heads-up for the Django step

django-celery-beat 2.9.0, the latest release, requires Django<6.1. Django 6.0 works, but 6.1 waits on a new celery-beat release.

allauth, DRF and django-celery-beat are the third-party apps with tables
in our database, so their migrations decide whether an upgrade touches
the schema. None of them adds a migration. DRF's and celery-beat's
migration files are byte-identical to the current versions. allauth
keeps the same migration names; its edits to old migrations are style
and multi-database fixes to two data migrations that production already
ran. makemigrations and migrate --plan both report nothing to do.

djangorestframework-stubs moves to 3.18 alongside DRF, as held back
earlier.

Assistant-model: Claude Code
@abe-101 abe-101 mentioned this pull request Oct 13, 2026
@abe-101
abe-101 merged commit 52c152c into main Oct 13, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant