mirror of
https://github.com/django/django.git
synced 2025-07-19 11:15:19 +00:00
Fixed #32392 -- Fixed ExclusionConstraint crash with Cast() in expressions.
This commit is contained in:
parent
135c800fe6
commit
fdfbc66331
4 changed files with 15 additions and 23 deletions
|
@ -305,7 +305,7 @@ class SchemaTests(PostgreSQLTestCase):
|
|||
self.assertIn(index_name, constraints)
|
||||
self.assertIn(constraints[index_name]['type'], GinIndex.suffix)
|
||||
self.assertIs(sql.references_column(table, 'field'), True)
|
||||
self.assertIn('::tsvector', str(sql))
|
||||
self.assertIn(' AS tsvector', str(sql))
|
||||
with connection.schema_editor() as editor:
|
||||
editor.remove_index(TextFieldModel, index)
|
||||
self.assertNotIn(index_name, self.get_constraints(table))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue