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.
* 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>
Comment (by jtiai):
Oracle also lacks support of transactions around schema alteration
operations.
--
Ticket URL: <https://code.djangoproject.com/ticket/26962#comment:2>
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/13567 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/26962#comment:4>
* needs_better_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/26962#comment:5>
* needs_better_patch: 1 => 0
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/26962#comment:6>
* 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>
* 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>