Skip to content

Commit 08ef1b8

Browse files
anderskclaudep
authored andcommitted
Include transitively replaced migrations in phonenumber migration
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]>
1 parent 7339c3c commit 08ef1b8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

two_factor/plugins/phonenumber/migrations/0001_squashed_0001_initial.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ def describe(self):
7373
class Migration(migrations.Migration):
7474
replaces = [
7575
('phonenumber', '0001_initial'),
76+
('two_factor', '0001_initial'), ('two_factor', '0002_auto_20150110_0810'),
77+
('two_factor', '0003_auto_20150817_1733'), ('two_factor', '0004_auto_20160205_1827'),
78+
('two_factor', '0005_auto_20160224_0450'), ('two_factor', '0006_phonedevice_key_default'),
79+
('two_factor', '0007_auto_20201201_1019'), ('two_factor', '0008_delete_phonedevice'),
7680
('two_factor', '0001_squashed_0008_delete_phonedevice'),
7781
]
7882

0 commit comments

Comments
 (0)