Changes between Initial Version and Version 1 of Ticket #35274, comment 1


Ignore:
Timestamp:
Mar 5, 2024, 11:48:50 PM (6 months ago)
Author:
David Sanders

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35274, comment 1

    initial v1  
    1 Thanks, though not sure what you're trying to achieve. Specifying "primary key" on a field implies that unique indexes will be created, otherwise fks won't be able to target it.  If your goal is to simply remove the "_like" index then you can do this by wrapping the auto-generated migration in a `SeparateDatabaseAndState` migration to customise the way it creates the table.
     1Thanks, though not sure what you're trying to achieve. Specifying "primary key" on a field implies that unique indexes will be created, otherwise fks won't be able to target it.  If your goal is to simply remove the "_like" index then you can do this by wrapping the auto-generated migration in a `SeparateDatabaseAndState` migration to customise the way it creates the table. (You could also add a manual migration to simply drop the index too).
    22
    33Honestly though it sounds like you could benefit from starting a thread on the Django forum to discuss your problem, others may have additional ways to help you: https://www.djangoproject.com/community/
Back to Top