1
0
mirror of https://github.com/django/django.git synced 2025-10-27 07:36:08 +00:00

[1.10.x] Fixed #27089 -- Added database alias to InconsistentMigrationHistory message.

Backport of ad25fe7350 from master
This commit is contained in:
Tim Graham
2016-08-18 18:17:01 -04:00
parent 6be255a22a
commit 46f604244a
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)