#36274: MigrationWriter does not support writing run_before
-------------------------------------+-------------------------------------
Reporter: Mikuláš Poul | Type: Bug
Status: new | Component:
| Migrations
Version: 5.1 | Severity: Normal
Keywords: migrations | Triage Stage:
migrationswriter run_before | Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
The `MigrationWriter` class implements writing a instance of
`django.db.migrations.migration.Migration`. It supports serializing all
the options it could have except for `run_before`. I recently made a PR
for a third-party package on remaking migrations (a form of squashing),
and had to subclass the writer to be able to include `run_before`. I think
`MigrationWriter` should support all options available on `Migration`, to
make working with migrations easier.
--
Ticket URL: <https://code.djangoproject.com/ticket/36274>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/django-updates/01070195c3aa67fd-0b65b608-9d96-424f-b40b-e0f1191bbe44-000000%40eu-central-1.amazonses.com.