[Django] #32415: Error occurs when migrate db: relation is not existed.

3 views
Skip to first unread message

Django

unread,
Feb 4, 2021, 4:13:21 AM2/4/21
to django-...@googlegroups.com
#32415: Error occurs when migrate db: relation is not existed.
-----------------------------------------+-------------------------
Reporter: duck-io | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 2.0
Severity: Normal | Keywords: migrate
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+-------------------------
We migrated db when the docker container start,but database closed
connection before migrate finished becasue of some known issues。
Then we try aganin, and django report error: relation is not existed。
I think there was some data lost when the database error,and want to
know how to avoid this error。
Can we add database transaction althrough the migrate proccess? All
success or All fail.

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

Django

unread,
Feb 4, 2021, 8:27:53 AM2/4/21
to django-...@googlegroups.com
#32415: Error occurs when migrate db: relation is not existed.
-------------------------------+--------------------------------------
Reporter: guhaibing | Owner: nobody
Type: Uncategorized | Status: closed
Component: Migrations | Version: 2.0
Severity: Normal | Resolution: invalid

Keywords: migrate | 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
* component: Uncategorized => Migrations


Comment:

Please check the
[https://docs.djangoproject.com/en/dev/topics/migrations/#transactions
documentation] and don't use Trac as a support channel.

Closing per TicketClosingReasons/UseSupportChannels.

--
Ticket URL: <https://code.djangoproject.com/ticket/32415#comment:1>

Reply all
Reply to author
Forward
0 new messages