[Django] #25371: Add examples of backward operations for RunSQL and RunPython

10 views
Skip to first unread message

Django

unread,
Sep 9, 2015, 1:02:48 AM9/9/15
to django-...@googlegroups.com
#25371: Add examples of backward operations for RunSQL and RunPython
--------------------------------------+--------------------
Reporter: iambibhas | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+--------------------
The documentation only has examples of
[https://docs.djangoproject.com/en/1.8/ref/migration-
operations/#django.db.migrations.operations.RunPython `forward_func`] or
[https://docs.djangoproject.com/en/1.8/ref/migration-
operations/#django.db.migrations.operations.RunSQL forward SQL]. It'll be
helpful if there were some examples of the use of `reverse_sql` or
`reverse_code`. I can send a PR.

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

Django

unread,
Sep 9, 2015, 6:18:37 AM9/9/15
to django-...@googlegroups.com
#25371: Add examples of backward operations for RunSQL and RunPython
----------------------------------+----------------------------

Reporter: iambibhas | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: master
Severity: Normal | Resolution:

Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Easy pickings: 0
UI/UX: 0 |
----------------------------------+----------------------------
Changes (by iambibhas):

* Attachment "migration_reverse.patch" added.

Patch for documentation changes

Django

unread,
Sep 9, 2015, 6:19:11 AM9/9/15
to django-...@googlegroups.com
#25371: Add examples of backward operations for RunSQL and RunPython
-------------------------------------+-------------------------------------
Reporter: iambibhas | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: Documentation | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

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

* needs_better_patch: => 0
* has_patch: 0 => 1
* needs_tests: => 0
* needs_docs: => 0


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

Django

unread,
Sep 9, 2015, 6:45:49 AM9/9/15
to django-...@googlegroups.com
#25371: Add examples of backward operations for RunSQL and RunPython
-------------------------------------+-------------------------------------
Reporter: iambibhas | Owner: nobody
Type: | Status: new
Cleanup/optimization |
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 MarkusH):

* stage: Unreviewed => Ready for checkin


Comment:

PR: https://github.com/django/django/pull/5251

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

Django

unread,
Sep 9, 2015, 2:21:23 PM9/9/15
to django-...@googlegroups.com
#25371: Add examples of backward operations for RunSQL and RunPython
-------------------------------------+-------------------------------------
Reporter: iambibhas | Owner: nobody
Type: | Status: closed
Cleanup/optimization |
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 Tim Graham <timograham@…>):

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


Comment:

In [changeset:"4283a038431ef6428d086d4911179bd8eb8b2299" 4283a03]:
{{{
#!CommitTicketReference repository=""
revision="4283a038431ef6428d086d4911179bd8eb8b2299"
Fixed #25371 -- Added reverse_sql and reverse_code examples to docs.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/25371#comment:3>

Django

unread,
Sep 9, 2015, 2:21:41 PM9/9/15
to django-...@googlegroups.com
#25371: Add examples of backward operations for RunSQL and RunPython
-------------------------------------+-------------------------------------
Reporter: iambibhas | Owner: nobody
Type: | Status: closed
Cleanup/optimization |
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
-------------------------------------+-------------------------------------

Comment (by Tim Graham <timograham@…>):

In [changeset:"72219d7b3274c7e8a511f18ea0f7d468b6a64c50" 72219d7]:
{{{
#!CommitTicketReference repository=""
revision="72219d7b3274c7e8a511f18ea0f7d468b6a64c50"
[1.8.x] Fixed #25371 -- Added reverse_sql and reverse_code examples to
docs.

Backport of 4283a038431ef6428d086d4911179bd8eb8b2299 from master
}}}

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

Reply all
Reply to author
Forward
0 new messages