#35180: PostgreSQL pattern ops indexes are dropped when changing between CharField and TextField -------------------------------------+------------------------------------- Reporter: Robin Ray | Owner: | timbaginski Type: Bug | Status: closed Component: Database layer | Version: dev (models, ORM) | Severity: Normal | Resolution: duplicate Keywords: index postgres | Triage Stage: migration | Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+------------------------------------- Changes (by Mariusz Felisiak):
* status: assigned => closed * resolution: => duplicate * stage: Accepted => Unreviewed Comment: As far as I'm aware, it is a [https://github.com/django/django/pull/17807#discussion_r1479565648 duplicate] of #28646 and changing a data type is not crucial for this issue. It's important that the altered field has `db_index` set to `True`, in such cases all indexes are deleted in the `BaseDatabaseSchemaEditor._alter_field()` but in some cases we miss recreating `_like` indexes. -- Ticket URL: <https://code.djangoproject.com/ticket/35180#comment:5> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/0107018d9efe9a19-69bbcfb2-6806-4ea6-a05a-67b2e093ed0c-000000%40eu-central-1.amazonses.com.