mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Fixed #23953 -- Made makemigrations continue number sequence for squashed migrations.
This commit is contained in:
parent
6e4ac28af0
commit
15683cdb95
3 changed files with 25 additions and 1 deletions
|
@ -2670,6 +2670,12 @@ class AutodetectorTests(TestCase):
|
|||
('0001_initial', 1),
|
||||
('0002_model3', 2),
|
||||
('0002_auto_20380101_1112', 2),
|
||||
('0002_squashed_0003', 3),
|
||||
('0002_model2_squashed_0003_other4', 3),
|
||||
('0002_squashed_0003_squashed_0004', 4),
|
||||
('0002_model2_squashed_0003_other4_squashed_0005_other6', 5),
|
||||
('0002_custom_name_20380101_1112_squashed_0003_model', 3),
|
||||
('2_squashed_4', 4),
|
||||
]
|
||||
for migration_name, expected_number in tests:
|
||||
with self.subTest(migration_name=migration_name):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue