#32267: Unable to unapply a branch of migrations -------------------------------+-------------------------------------- Reporter: Roman Odaisky | Owner: nobody Type: New feature | Status: closed Component: Migrations | Version: 3.1 Severity: Normal | Resolution: invalid Keywords: | Triage Stage: Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------+--------------------------------------
Comment (by Roman Odaisky): By the way, do I understand correctly that if this code: https://github.com/django/django/blob/stable/3.1.x/django/db/migrations/executor.py#L43 is modified so instead of the loop {{{ for node in next_in_app: for migration in self.loader.graph.backwards_plan(node): }}} it simply performs `self.loader.graph.backwards_plan(target)` it will do exactly what I want, that is, migrate back to the specified migration and then unapply that migration as well? -- Ticket URL: <https://code.djangoproject.com/ticket/32267#comment:3> 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 django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.e63cfe661ba63cfa0a8b95813aaa8823%40djangoproject.com.