diff options
author | Jon Dufresne <jon.dufresne@gmail.com> | 2016-07-15 07:34:37 -0700 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2016-07-15 10:34:37 -0400 |
commit | 3f76d1402dac9c2993d588f996dc1c331edbc9a7 (patch) | |
tree | 24ef05b8a971808429b0c2c25182f4ff4b7b3de4 /tests/indexes | |
parent | f8bfa806805a87d2cdd677089bd96fbf8400cb95 (diff) | |
download | django-3f76d1402dac9c2993d588f996dc1c331edbc9a7.tar.gz |
Refs #26889 -- Refactored SchemaEditor to allow backend specific indexes.
Diffstat (limited to 'tests/indexes')
-rw-r--r-- | tests/indexes/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/indexes/tests.py b/tests/indexes/tests.py index dfc503e15d..4bd2332674 100644 --- a/tests/indexes/tests.py +++ b/tests/indexes/tests.py @@ -46,7 +46,7 @@ class SchemaIndexesTests(TestCase): from .models import IndexedArticle index_sql = connection.schema_editor()._model_indexes_sql(IndexedArticle) self.assertEqual(len(index_sql), 5) - self.assertIn('("headline" varchar_pattern_ops)', index_sql[2]) + self.assertIn('("headline" varchar_pattern_ops)', index_sql[1]) self.assertIn('("body" text_pattern_ops)', index_sql[3]) # unique=True and db_index=True should only create the varchar-specific # index (#19441). |