diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2025-09-29 23:01:12 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2025-09-29 23:01:42 +0200 |
| commit | 2d502ed39d37c44c995ff9160e3c29f4ed1e643e (patch) | |
| tree | b7e92c536d631fb102211e556dd59c6dde9a13eb /tests/migrations | |
| parent | 015150999d01ccf573b199f9d6c46729250c0dc4 (diff) | |
[6.0.x] Fixed assertIndexExists() crash when non-index constraint exists on the same columns.
Backport of 8b84364d469e394d9f04b4f96a7da1fc16d93fce from main
Diffstat (limited to 'tests/migrations')
| -rw-r--r-- | tests/migrations/test_base.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/migrations/test_base.py b/tests/migrations/test_base.py index b636d18ec4..24ae59ca1b 100644 --- a/tests/migrations/test_base.py +++ b/tests/migrations/test_base.py @@ -108,6 +108,7 @@ class MigrationTestBase(TransactionTestCase): .values() if ( c["columns"] == list(columns) + and c["index"] is True and (index_type is None or c["type"] == index_type) and not c["unique"] ) |
