summaryrefslogtreecommitdiff
path: root/docs/releases/2.2.txt
diff options
context:
space:
mode:
authorPaveł Tyślacki <tbicr@users.noreply.github.com>2019-01-01 17:39:58 +0300
committerTim Graham <timograham@gmail.com>2019-01-01 09:39:58 -0500
commit0123b67f6b8304a5c32a0fe98f97ae506977454b (patch)
tree42343d14292507192c1a2266544fe84562ccb74b /docs/releases/2.2.txt
parente5ae9488acd45a9758ed5c70240a7e3fad417c00 (diff)
Fixed #30060 -- Moved SQL generation for indexes and constraints to SchemaEditor.
Diffstat (limited to 'docs/releases/2.2.txt')
-rw-r--r--docs/releases/2.2.txt16
1 files changed, 9 insertions, 7 deletions
diff --git a/docs/releases/2.2.txt b/docs/releases/2.2.txt
index 3201d00047..65f53c1a49 100644
--- a/docs/releases/2.2.txt
+++ b/docs/releases/2.2.txt
@@ -322,13 +322,6 @@ backends.
* Third party database backends must implement support for partial indexes or
set ``DatabaseFeatures.supports_partial_indexes`` to ``False``.
-* Several ``SchemaEditor`` attributes are changed:
-
- * ``sql_create_check`` is replaced with ``sql_create_constraint``.
- * ``sql_delete_check`` is replaced with ``sql_delete_constraint``.
- * ``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()``.
@@ -336,6 +329,15 @@ backends.
``DatabaseIntrospection.get_constraints()`` returns must be normalized by
``identifier_converter()``.
+* SQL generation for indexes is moved from :class:`~django.db.models.Index` to
+ ``SchemaEditor`` and these ``SchemaEditor`` methods are added:
+
+ * ``_create_primary_key_sql()`` and ``_delete_primary_key_sql()``
+ * ``_delete_index_sql()`` (to pair with ``_create_index_sql()``)
+ * ``_delete_unique_sql`` (to pair with ``_create_unique_sql()``)
+ * ``_delete_fk_sql()`` (to pair with ``_create_fk_sql()``)
+ * ``_create_check_sql()`` and ``_delete_check_sql()``
+
Admin actions are no longer collected from base ``ModelAdmin`` classes
----------------------------------------------------------------------