[Django] #22776: Management command sqlall should support applabel.model syntax

4 views
Skip to first unread message

Django

unread,
Jun 6, 2014, 3:22:49 AM6/6/14
to django-...@googlegroups.com
#22776: Management command sqlall should support applabel.model syntax
----------------------------------------------+--------------------
Reporter: smeatonj | Owner: nobody
Type: New feature | Status: new
Component: Database layer (models, ORM) | Version: master
Severity: Normal | Keywords: sqlall
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
----------------------------------------------+--------------------
It'd be extremely useful if the sqlall management command was able to
produce the sql for a specific model:

{{{
./manage sqlall applabel.Model
}}}

The above would be particularly useful with ticket #22775 ( --include-
unmanaged ), as you'd be able to print out only the SQL required for
models not managed by migrations.

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

Django

unread,
Jun 6, 2014, 3:43:06 AM6/6/14
to django-...@googlegroups.com
#22776: Management command sqlall should support applabel.model syntax
-------------------------------------+-------------------------------------

Reporter: smeatonj | Owner: nobody
Type: New feature | Status: new
Component: Database layer | Version: master
(models, ORM) | Resolution:
Severity: Normal | Triage Stage: Accepted
Keywords: sqlall | Needs documentation: 0
Has patch: 0 | Patch needs improvement: 0
Needs tests: 0 | UI/UX: 0
Easy pickings: 0 |
-------------------------------------+-------------------------------------
Changes (by loic84):

* cc: loic84 (added)
* needs_docs: => 0
* needs_better_patch: => 0
* needs_tests: => 0
* stage: Unreviewed => Accepted


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

Django

unread,
Jun 6, 2014, 4:21:20 AM6/6/14
to django-...@googlegroups.com
#22776: Management command sqlall should support applabel.model syntax
-------------------------------------+-------------------------------------
Reporter: smeatonj | Owner: mardini
Type: New feature | Status: assigned

Component: Database layer | Version: master
(models, ORM) | Resolution:
Severity: Normal | Triage Stage: Accepted
Keywords: sqlall | Needs documentation: 0
Has patch: 0 | Patch needs improvement: 0
Needs tests: 0 | UI/UX: 0
Easy pickings: 0 |
-------------------------------------+-------------------------------------
Changes (by mardini):

* owner: nobody => mardini
* status: new => assigned


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

Django

unread,
Jun 6, 2014, 5:06:37 PM6/6/14
to django-...@googlegroups.com
#22776: Management command sqlall should support applabel.model syntax
-------------------------------------+-------------------------------------
Reporter: smeatonj | Owner: mardini
Type: New feature | Status: assigned
Component: Database layer | Version: master
(models, ORM) | Resolution:
Severity: Normal | Triage Stage: Accepted
Keywords: sqlall | Needs documentation: 0
Has patch: 1 | Patch needs improvement: 0

Needs tests: 0 | UI/UX: 0
Easy pickings: 0 |
-------------------------------------+-------------------------------------
Changes (by mardini):

* has_patch: 0 => 1


Comment:

PR: https://github.com/django/django/pull/2770
Thanks.

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

Django

unread,
Jun 7, 2014, 2:17:53 PM6/7/14
to django-...@googlegroups.com
#22776: Management command sqlall should support applabel.model syntax
-------------------------------------+-------------------------------------
Reporter: smeatonj | Owner: mardini
Type: New feature | Status: assigned
Component: Core (Management | Version: master
commands) | Resolution:

Severity: Normal | Triage Stage: Accepted
Keywords: sqlall | Needs documentation: 0
Has patch: 1 | Patch needs improvement: 0
Needs tests: 0 | UI/UX: 0
Easy pickings: 0 |
-------------------------------------+-------------------------------------
Changes (by mardini):

* component: Database layer (models, ORM) => Core (Management commands)


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

Django

unread,
Jun 7, 2014, 2:43:56 PM6/7/14
to django-...@googlegroups.com
#22776: Management command sqlall should support applabel.model syntax
-------------------------------------+-------------------------------------
Reporter: smeatonj | Owner: mardini
Type: New feature | Status: closed

Component: Core (Management | Version: master
commands) | Resolution: wontfix

Severity: Normal | Triage Stage: Accepted
Keywords: sqlall | Needs documentation: 0
Has patch: 1 | Patch needs improvement: 0
Needs tests: 0 | UI/UX: 0
Easy pickings: 0 |
-------------------------------------+-------------------------------------
Changes (by mardini):

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


Comment:

After a discussion on IRC, Tim suggested closing this ticket and not doing
any new work on sql commands, since they will be deprecated according to
Andrew: https://code.djangoproject.com/ticket/22611#comment:6

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

Reply all
Reply to author
Forward
0 new messages