mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Fixed #36184 -- Allowed migrating forward to squashed migrations.
This commit is contained in:
@@ -1328,6 +1328,16 @@ class MigrateTests(MigrationTestBase):
|
||||
# Unmigrate everything.
|
||||
call_command("migrate", "migrations", "zero", verbosity=0)
|
||||
|
||||
@override_settings(
|
||||
MIGRATION_MODULES={"migrations": "migrations.test_migrations_squashed"}
|
||||
)
|
||||
def test_migrate_forward_to_squashed_migration(self):
|
||||
try:
|
||||
call_command("migrate", "migrations", "0001_initial", verbosity=0)
|
||||
finally:
|
||||
# Unmigrate everything.
|
||||
call_command("migrate", "migrations", "zero", verbosity=0)
|
||||
|
||||
@override_settings(
|
||||
MIGRATION_MODULES={"migrations": "migrations.test_migrations_squashed"}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user