mirror of
https://github.com/django/django.git
synced 2025-08-02 18:13:02 +00:00
Refs #29641 -- Refactored database schema constraint creation.
Added a test for constraint names in the database. Updated SQLite introspection to use sqlparse to allow reading the constraint name for table check and unique constraints. Co-authored-by: Ian Foote <python@ian.feete.org>
This commit is contained in:
parent
2f120ac517
commit
dba4a634ba
7 changed files with 147 additions and 82 deletions
|
@ -293,6 +293,13 @@ Database backend API
|
|||
* 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``.
|
||||
|
||||
Admin actions are no longer collected from base ``ModelAdmin`` classes
|
||||
----------------------------------------------------------------------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue