mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #27089 -- Added database alias to InconsistentMigrationHistory message.
This commit is contained in:
@@ -378,7 +378,10 @@ class LoaderTests(TestCase):
|
||||
loader.check_consistent_history(connection)
|
||||
recorder = MigrationRecorder(connection)
|
||||
recorder.record_applied('migrations', '0002_second')
|
||||
msg = "Migration migrations.0002_second is applied before its dependency migrations.0001_initial"
|
||||
msg = (
|
||||
"Migration migrations.0002_second is applied before its dependency "
|
||||
"migrations.0001_initial on database 'default'."
|
||||
)
|
||||
with self.assertRaisesMessage(InconsistentMigrationHistory, msg):
|
||||
loader.check_consistent_history(connection)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user