Skip to content

Commit

Permalink
Include transitively replaced migrations in phonenumber migration
Browse files Browse the repository at this point in the history
phonenumber.0001_squashed_0001_initial replaces
two_factor.0001_squashed_0008_delete_phonedevice which itself replaces
two_factor.0001_initial through two_factor.0008_delete_phonedevice,
but Django needs these transitive replacements to be expressed
directly rather than indirectly.

This fixes a problem where new installs would still execute
two_factor.0001_squashed_0008_delete_phonedevice the second time
migrations are run.

Signed-off-by: Anders Kaseorg <[email protected]>
  • Loading branch information
andersk authored and claudep committed Aug 24, 2023
1 parent 7339c3c commit 08ef1b8
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ def describe(self):
class Migration(migrations.Migration):
replaces = [
('phonenumber', '0001_initial'),
('two_factor', '0001_initial'), ('two_factor', '0002_auto_20150110_0810'),
('two_factor', '0003_auto_20150817_1733'), ('two_factor', '0004_auto_20160205_1827'),
('two_factor', '0005_auto_20160224_0450'), ('two_factor', '0006_phonedevice_key_default'),
('two_factor', '0007_auto_20201201_1019'), ('two_factor', '0008_delete_phonedevice'),
('two_factor', '0001_squashed_0008_delete_phonedevice'),
]

Expand Down

0 comments on commit 08ef1b8

Please sign in to comment.