Add hooks into SchemaEditor.alter_field() and reduce complexity
This patch adds in hooks into the base alter_field method in BaseDatabaseSchemaEditor so backends are able to augment or override the various actions that occur when altering a field. This also cuts complexity in half, and clarifies the various actions.
PR is https://github.com/django/django/pull/8922
Change History
(5)
| Type: |
New feature → Cleanup/optimization
|
| Component: |
Database layer (models, ORM) → Migrations
|
| Summary: |
Add hooks into schema alter_field and reduce complexity → Add hooks into SchemaEditor.alter_field() and reduce complexity
|
| Triage Stage: |
Unreviewed → Accepted
|