--
You received this message because you are subscribed to the Google Groups "Django developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-develop...@googlegroups.com.
To post to this group, send email to django-d...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers.
For more options, visit https://groups.google.com/groups/opt_out.
My personal opinion is that If you need to get in to this much detail about your indices, you're probably better off tweaking things directly against the database and not specifying them in the model.
With that said, here are a few suggestions for your proof of concept.Don't piggyback db_index. It would be cleaner to add another argument "db_index_type" that can hold whatever values the database backend is willing to support.
There should not be any backend specific logic outside of the database backends and test suite. I'd recommend altering your validation.py changes to check a new DatabaseFeature supports_db_index_types and adding a method to BaseDatabaseCreation that can validate the db_index_type. db_index_type doesn't necessarily need to be a string. Better to let the database backends decide whether it is best to have db_index_type represented as a string, int, or object.
What kind of additional configuration? One advantage of not specifying the type of the db_index_type field is that you could instantiate an object that encapsulates the configuration.
--
You received this message because you are subscribed to the Google Groups "Django developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-develop...@googlegroups.com.
To post to this group, send email to django-d...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/e82f538b-6a8b-4691-ad8f-3912d87599ed%40googlegroups.com.