#25025 closed Uncategorized (duplicate)
Django migration (>=1.7) like index
Description ¶
Django migration generates 'like' indexes for database text fields.
For example:
"auth_user_username_51b3b110094b8aae_like" btree (username varchar_pattern_ops)
I would like to explicitly set indexes in database.
Is it possible to disable like index generation with django migrations?
Change History (2)
comment:1 by , 10 years ago
Resolution: | → needsinfo |
---|---|
Status: | new → closed |
comment:2 by , 10 years ago
Resolution: | needsinfo → duplicate |
---|
Duplicate of #24507 and #24088. See also discussion on django-developers.
Note:
See TracTickets
for help on using tickets.
If you don't want an "automatic" index, why simply not specify db_index on the field? If I missed the point, please develop your use case a bit more.