#34546: Failed migration yields to unmigratable app: "OperationalError: (1050,
"Table '<name>' already exists")"
--------------------------------+--------------------------------------
     Reporter:  Natalia Bidart  |                    Owner:  nobody
         Type:  Bug             |                   Status:  new
    Component:  Migrations      |                  Version:  4.2
     Severity:  Normal          |               Resolution:
     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 Simon Charette):

 I'm afraid there's little that can be done here on MySQL which doesn't
 support transactional DDL.

 If you have a migration with multiple operations and one of them happen to
 fail Django has no way to know which operations are applied and which
 aren't so re-running the migration requires attempting the whole sequence
 of operations again.

 [https://docs.djangoproject.com/en/4.2/topics/migrations/#mysql This is a
 documented] limitation of MySQL.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34546#comment:2>
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 on the web visit 
https://groups.google.com/d/msgid/django-updates/01070187fc6a98de-a70fb987-245e-43a6-a8dc-8b5421aab744-000000%40eu-central-1.amazonses.com.

Reply via email to