mirror of
https://github.com/django/django.git
synced 2025-08-03 02:23:12 +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:
parent
538bf43458
commit
91b2bc3e70
3 changed files with 68 additions and 8 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue