check-database-compatibility: Ignore twofactor typo.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
(cherry picked from commit ead7b9177a)
This commit is contained in:
Anders Kaseorg
2023-08-23 18:48:43 -07:00
committed by Alex Vandiver
parent 35b0b2fb6a
commit 6b016eb5bf

View File

@@ -120,6 +120,10 @@ missing.difference_update(
# https://github.com/python-social-auth/social-app-django/pull/25 # https://github.com/python-social-auth/social-app-django/pull/25
missing.discard(("default", "0005_auto_20160727_2333")) missing.discard(("default", "0005_auto_20160727_2333"))
# This was a typo (twofactor for two_factor) corrected in
# https://github.com/jazzband/django-two-factor-auth/pull/642
missing.discard(("twofactor", "0001_squashed_0008_delete_phonedevice"))
for key, migration in loader.disk_migrations.items(): for key, migration in loader.disk_migrations.items():
missing.discard(key) missing.discard(key)
missing.difference_update(migration.replaces) missing.difference_update(migration.replaces)