I have a Django model where I want to add a db_index=True
to a field after the table was created.
I figured out that Django doesn't create a migration, thus the index is not created. If the table is nonexistent and first created, Django creates the index.
I've read Django : db_index and makemigrations, but I wonder if it's a good idea to manually create a migration file?
I'm using MySQL. What's the Django best practice on this?