Opened 13 months ago

Last modified 6 months ago

#28504 new Cleanup/optimization

Add hooks into SchemaEditor.alter_field() and reduce complexity

Reported by: Rachel Tobin Owned by: nobody
Component: Migrations Version: 1.11
Severity: Normal Keywords:
Cc: Rachel Tobin Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

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 (4)

comment:1 Changed 13 months ago by Rachel Tobin

Type: New featureCleanup/optimization

comment:2 Changed 13 months ago by Tim Graham

Component: Database layer (models, ORM)Migrations
Summary: Add hooks into schema alter_field and reduce complexityAdd hooks into SchemaEditor.alter_field() and reduce complexity
Triage Stage: UnreviewedAccepted

comment:3 Changed 13 months ago by Rachel Tobin

Cc: Rachel Tobin added

comment:4 Changed 6 months ago by Carlton Gibson

Has patch: unset
Note: See TracTickets for help on using tickets.
Back to Top