[Django] #23478: Wrong help for sqlmigrate management command

21 views
Skip to first unread message

Django

unread,
Sep 12, 2014, 4:56:56 AM9/12/14
to django-...@googlegroups.com
#23478: Wrong help for sqlmigrate management command
--------------------------------------------+--------------------
Reporter: g1itch | Owner: nobody
Type: Uncategorized | Status: new
Component: Core (Management commands) | Version: 1.7
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------------+--------------------
`sqlmigrate` probably should have the same help message as `migrate`.
Compare:
{{{#!sh
# python manage.py help migrate
Usage: manage.py migrate [options] [app_label] [migration_name]
...
}}}

{{{#!sh
# python manage.py help sqlmigrate
Usage: manage.py sqlmigrate [options]
...
}}}

Otherwise, it produces obscure error:

{{{#!sh
# python manage.py sqlmigrate --database=database1
CommandError: Wrong number of arguments (expecting 'sqlmigrate app_label
migrationname')
}}}

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

Django

unread,
Sep 12, 2014, 7:44:54 AM9/12/14
to django-...@googlegroups.com
#23478: Wrong help for sqlmigrate management command
-------------------------------------+-------------------------------------
Reporter: g1itch | Owner: nobody
Type: Bug | Status: new
Component: Core (Management | Version: 1.7
commands) | Resolution:
Severity: Normal | Triage Stage: Accepted
Keywords: | Needs documentation: 0
Has patch: 0 | Patch needs improvement: 0
Needs tests: 0 | UI/UX: 0
Easy pickings: 1 |
-------------------------------------+-------------------------------------
Changes (by timgraham):

* needs_better_patch: => 0
* needs_tests: => 0
* easy: 0 => 1
* needs_docs: => 0
* type: Uncategorized => Bug
* stage: Unreviewed => Accepted


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

Django

unread,
Sep 13, 2014, 3:50:38 AM9/13/14
to django-...@googlegroups.com
#23478: Wrong help for sqlmigrate management command
-------------------------------------+-------------------------------------
Reporter: g1itch | Owner: nobody

Type: Bug | Status: new
Component: Core (Management | Version: 1.7
commands) | Resolution:
Severity: Normal | Triage Stage: Accepted
Keywords: | Needs documentation: 0
Has patch: 0 | Patch needs improvement: 0
Needs tests: 0 | UI/UX: 0
Easy pickings: 1 |
-------------------------------------+-------------------------------------

Comment (by claudep):

This is an 1.7-only issue, as in master, the `argparse` version of the
command does show required arguments.

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

Django

unread,
Sep 13, 2014, 3:51:13 AM9/13/14
to django-...@googlegroups.com
#23478: Wrong help for sqlmigrate management command
-------------------------------------+-------------------------------------
Reporter: g1itch | Owner: nobody
Type: Bug | Status: closed

Component: Core (Management | Version: 1.7
commands) | Resolution: fixed

Severity: Normal | Triage Stage: Accepted
Keywords: | Needs documentation: 0
Has patch: 0 | Patch needs improvement: 0
Needs tests: 0 | UI/UX: 0
Easy pickings: 1 |
-------------------------------------+-------------------------------------
Changes (by Claude Paroz <claude@…>):

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


Comment:

In [changeset:"31309d4722aa5e08d10733f8cf36d3184799044b"]:
{{{
#!CommitTicketReference repository=""
revision="31309d4722aa5e08d10733f8cf36d3184799044b"
[1.7.x] Fixed #23478 -- Complemented sqlmigrate command help
}}}

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

Reply all
Reply to author
Forward
0 new messages