Allow migrations.Operation to control their output.
|Reported by:||loic84||Owned by:|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
MigrationWriter controls the output of migrations and to do so it renders the various operations with a generic format.
The problem is operations such as
CreateModel end up writing all the fields on a single line, which makes the migration file difficult to review.
I propose that
Operations should control their own output.
I had a go at this in https://github.com/django/django/pull/1681.
Change History (6)
comment:1 Changed 3 years ago by
|Patch needs improvement:||unset|
|Triage Stage:||Unreviewed → Accepted|
comment:5 Changed 3 years ago by
|Owner:||set to Loic Bistuer <loic.bistuer@…>|
|Status:||new → closed|