[Django] #26962: docs: Missing Information about Transaction in Operations (migrations)

20 views
Skip to first unread message

Django

unread,
Jul 27, 2016, 10:13:28 AM7/27/16
to django-...@googlegroups.com
#26962: docs: Missing Information about Transaction in Operations (migrations)
-------------------------------+--------------------
Reporter: guettli | Owner: nobody
Type: Uncategorized | Status: new
Component: Documentation | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------
I could not find a note how the migrations operations (for example
CreateModel) handle transactions.

I checked these pages:
https://docs.djangoproject.com/en/dev/topics/migrations/
https://docs.djangoproject.com/en/dev/ref/migration-operations/

There are some notes about how RunPython handles transactions, but not the
general handling of transactions.

The question which I want to see answered in the docs:

> Do migrations operations create a new transaction by default, or do all
migrations operations run in one transaction?

Please forgive me, if I was blind.

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

Django

unread,
Jul 27, 2016, 1:58:28 PM7/27/16
to django-...@googlegroups.com
#26962: docs: Missing Information about Transaction in Operations (migrations)
--------------------------------------+------------------------------------
Reporter: guettli | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by timgraham):

* needs_better_patch: => 0
* needs_docs: => 0
* type: Uncategorized => Cleanup/optimization
* needs_tests: => 0
* stage: Unreviewed => Accepted


Comment:

Yes, this isn't stated clearly. There's a hint about it in the MySQL
section of the topic guide, "MySQL lacks support for transactions around
schema alteration operations" and some discussion in the
[https://docs.djangoproject.com/en/stable/howto/writing-migrations/
writing migrations how-to], but it should be more clear in general.

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

Django

unread,
Jul 28, 2016, 7:46:55 AM7/28/16
to django-...@googlegroups.com
#26962: docs: Missing Information about Transaction in Operations (migrations)
--------------------------------------+------------------------------------
Reporter: guettli | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: master

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------

Comment (by jtiai):

Oracle also lacks support of transactions around schema alteration
operations.

--
Ticket URL: <https://code.djangoproject.com/ticket/26962#comment:2>

Django

unread,
Oct 20, 2020, 6:32:26 AM10/20/20
to django-...@googlegroups.com
#26962: docs: Missing Information about Transaction in Operations (migrations)
-------------------------------------+-------------------------------------
Reporter: Thomas Güttler | Owner: Caio
Type: | Ariede
Cleanup/optimization | Status: assigned
Component: Documentation | Version: master

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Caio Ariede):

* has_patch: 0 => 1


Comment:

[https://github.com/django/django/pull/13567 PR]

--
Ticket URL: <https://code.djangoproject.com/ticket/26962#comment:4>

Django

unread,
Oct 28, 2020, 4:47:13 AM10/28/20
to django-...@googlegroups.com
#26962: docs: Missing Information about Transaction in Operations (migrations)
-------------------------------------+-------------------------------------
Reporter: Thomas Güttler | Owner: Caio
Type: | Ariede
Cleanup/optimization | Status: assigned
Component: Documentation | Version: master

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* needs_better_patch: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/26962#comment:5>

Django

unread,
Oct 29, 2020, 3:01:55 AM10/29/20
to django-...@googlegroups.com
#26962: docs: Missing Information about Transaction in Operations (migrations)
-------------------------------------+-------------------------------------
Reporter: Thomas Güttler | Owner: Caio
Type: | Ariede
Cleanup/optimization | Status: assigned
Component: Documentation | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Ready for
| checkin

Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* needs_better_patch: 1 => 0
* stage: Accepted => Ready for checkin


--
Ticket URL: <https://code.djangoproject.com/ticket/26962#comment:6>

Django

unread,
Oct 29, 2020, 3:40:25 AM10/29/20
to django-...@googlegroups.com
#26962: docs: Missing Information about Transaction in Operations (migrations)
-------------------------------------+-------------------------------------
Reporter: Thomas Güttler | Owner: Caio
Type: | Ariede
Cleanup/optimization | Status: closed
Component: Documentation | Version: master
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak <felisiak.mariusz@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"9ca22c7733efeeb140b75585c6387ef2cb861d19" 9ca22c77]:
{{{
#!CommitTicketReference repository=""
revision="9ca22c7733efeeb140b75585c6387ef2cb861d19"
Fixed #26962 -- Doc'd running migrations in transactions.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/26962#comment:7>

Django

unread,
Oct 29, 2020, 3:40:27 AM10/29/20
to django-...@googlegroups.com
#26962: docs: Missing Information about Transaction in Operations (migrations)
-------------------------------------+-------------------------------------
Reporter: Thomas Güttler | Owner: Caio
Type: | Ariede
Cleanup/optimization | Status: closed
Component: Documentation | Version: master

Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak <felisiak.mariusz@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"62f6ab2c4a2bbf1b5354bca268dcd43be8537785" 62f6ab2c]:
{{{
#!CommitTicketReference repository=""
revision="62f6ab2c4a2bbf1b5354bca268dcd43be8537785"
[3.1.x] Fixed #26962 -- Doc'd running migrations in transactions.

Backport of 9ca22c7733efeeb140b75585c6387ef2cb861d19 from master
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/26962#comment:8>

Reply all
Reply to author
Forward
0 new messages