mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Fixed #29949 -- Refactored db introspection identifier converters.
Removed DatabaseIntrospection.table_name_converter()/column_name_converter() and use instead DatabaseIntrospection.identifier_converter(). Removed DatabaseFeatures.uppercases_column_names. Thanks Tim Graham for the initial patch and review and Simon Charette for the review.
This commit is contained in:
parent
2e4776196d
commit
d5f4ce9849
15 changed files with 64 additions and 76 deletions
|
@ -312,6 +312,13 @@ backends.
|
|||
* ``sql_create_fk`` is replaced with ``sql_foreign_key_constraint``,
|
||||
``sql_constraint``, and ``sql_create_constraint``.
|
||||
|
||||
* ``DatabaseIntrospection.table_name_converter()`` and
|
||||
``column_name_converter()`` are removed. Third party database backends may
|
||||
need to instead implement ``DatabaseIntrospection.identifier_converter()``.
|
||||
In that case, the constraint names that
|
||||
``DatabaseIntrospection.get_constraints()`` returns must be normalized by
|
||||
``identifier_converter()``.
|
||||
|
||||
Admin actions are no longer collected from base ``ModelAdmin`` classes
|
||||
----------------------------------------------------------------------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue