mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Fixed #27860 -- Dropped varchar_pattern_ops/text_pattern_ops index before altering char/text field in PostgreSQL.
Thanks Tim Graham for the review.
This commit is contained in:
@@ -17,6 +17,13 @@ class Author(models.Model):
|
||||
apps = new_apps
|
||||
|
||||
|
||||
class AuthorCharFieldWithIndex(models.Model):
|
||||
char_field = models.CharField(max_length=31, db_index=True)
|
||||
|
||||
class Meta:
|
||||
apps = new_apps
|
||||
|
||||
|
||||
class AuthorTextFieldWithIndex(models.Model):
|
||||
text_field = models.TextField(db_index=True)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user