diff options
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/migration-operations.txt | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/docs/ref/migration-operations.txt b/docs/ref/migration-operations.txt index 8379221df5..26c0c14218 100644 --- a/docs/ref/migration-operations.txt +++ b/docs/ref/migration-operations.txt @@ -195,15 +195,12 @@ 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 +.. versionchanged:: 6.0 + :class:`~django.db.backends.base.schema.BaseDatabaseSchemaEditor` and + PostgreSQL backends no longer use ``CASCADE`` to delete dependent related + database objects, such as views. Any dependent objects that are not managed + by Django may need to be removed manually before running ``RemoveField``. ``AlterField`` -------------- |
