1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

Fixed #27089 -- Added database alias to InconsistentMigrationHistory message.

This commit is contained in:
Tim Graham
2016-08-18 18:17:01 -04:00
parent 80c03b06ad
commit ad25fe7350
3 changed files with 10 additions and 2 deletions

View File

@@ -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)