Opened 10 years ago
Closed 10 years ago
#22776 closed New feature (wontfix)
Management command sqlall should support applabel.model syntax
Reported by: | jarshwah | Owned by: | mardini |
---|---|---|---|
Component: | Core (Management commands) | Version: | dev |
Severity: | Normal | Keywords: | sqlall |
Cc: | loic84 | Triage Stage: | Accepted |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
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.
Change History (5)
comment:1 by , 10 years ago
Cc: | added |
---|---|
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 10 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:3 by , 10 years ago
Has patch: | set |
---|
comment:4 by , 10 years ago
Component: | Database layer (models, ORM) → Core (Management commands) |
---|
comment:5 by , 10 years ago
Resolution: | → wontfix |
---|---|
Status: | assigned → closed |
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
PR: https://github.com/django/django/pull/2770
Thanks.