Doc'd that RemoveField also drops related database objects in PostgreSQL.

This commit is contained in:
David Sanders 2024-04-17 02:11:06 +10:00 committed by GitHub
parent d048f0d311
commit f0d50a9379
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 10 additions and 0 deletions

View File

@ -195,6 +195,16 @@ if the field is nullable or if it has a default value that can be used to
populate the recreated column. If the field is not nullable and does not have a
default value, the operation is irreversible.
.. admonition:: PostgreSQL
``RemoveField`` will also delete any additional database objects that are
related to the removed field (like views, for example). This is because the
resulting ``DROP COLUMN`` statement will include the ``CASCADE`` clause to
ensure `dependent objects outside the table are also dropped`_.
.. _dependent objects outside the table are also dropped: https://www.postgresql.org/docs/current/sql-altertable.html#SQL-ALTERTABLE-PARMS-CASCADE
``AlterField``
--------------