mirror of
https://github.com/django/django.git
synced 2025-11-25 05:04:26 +00:00
Fixed #27089 -- Added database alias to InconsistentMigrationHistory message.
This commit is contained in:
parent
80c03b06ad
commit
ad25fe7350
3 changed files with 10 additions and 2 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue