Re: [Django] #34546: Failed migration yields to unmigratable app:""OperationalError: (1050, "Table '<name>' already exists") (was: Failed migration yields to unmigratable app: "OperationalError: (1050, "Table '<name>' already exists")")

3 views
Skip to first unread message

Django

unread,
May 8, 2023, 1:32:11 PM5/8/23
to django-...@googlegroups.com
#34546: Failed migration yields to unmigratable app:""OperationalError: (1050,
"Table '<name>' already exists")
--------------------------------+--------------------------------------
Reporter: Natalia Bidart | Owner: nobody
Type: Bug | Status: closed
Component: Migrations | Version: 4.2
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
--------------------------------+--------------------------------------
Changes (by Mariusz Felisiak):

* status: new => closed
* resolution: => invalid


Comment:

I'm sorry but it is support question and Trac is not a support channel.

> ValueError: The database backend does not accept 0 as a value for
AutoField.

I'm not sure how we could be clearer here. 0 doesn't work for auto
increment fields on MySQL without the `NO_AUTO_VALUE_ON_ZERO` SQL mode.

> MySQLdb.OperationalError: (1050, "Table 'testapp_modelz' already
exists")

MySQL doesn't support roll back DDL operations in a transaction.

--
Ticket URL: <https://code.djangoproject.com/ticket/34546#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Reply all
Reply to author
Forward
0 new messages