Currently when I need to generate SQL for `auth` package using `sql`,
`sqlall` and `sqlindexes` commands, I'm getting an error:
{{{
CommandError: App 'auth' has migrations. Only the sqlmigrate and sqlflush
commands can be used when an app has migrations.
}}}
But I'm expecting generated SQL instead.
Please add possibility to generate SQL for smart users which know what
they are doing.
I'm sending patch proposal as an attachment.
Please backport this fix to 1.7 and 1.8 branches.
Thank you very much.
--
Ticket URL: <https://code.djangoproject.com/ticket/24876>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* Attachment "force-generating-sql.diff" added.
Patch proposal
* status: new => closed
* needs_better_patch: => 0
* resolution: => duplicate
* needs_tests: => 0
* needs_docs: => 0
Comment:
Duplicate of #24481. We'll need a new proposal for master as the affected
sql* management commands have been removed there. A change is unlikely to
be backported per our [https://docs.djangoproject.com/en/dev/internals
/release-process/#supported-versions supported versions policy].
--
Ticket URL: <https://code.djangoproject.com/ticket/24876#comment:1>