#24876: Skipping migrations checking in sql* commands
-------------------------------+--------------------
     Reporter:  marcinn        |      Owner:  nobody
         Type:  Uncategorized  |     Status:  new
    Component:  Uncategorized  |    Version:  1.8
     Severity:  Normal         |   Keywords:
 Triage Stage:  Unreviewed     |  Has patch:  0
Easy pickings:  0              |      UI/UX:  0
-------------------------------+--------------------
 There are some IT projects that do not require Django`s builtin migrations
 but use external migration tool. As a maintainer of projects of that type
 I need to generate SQLs from models in same way as before Django 1.7.

 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.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/050.7138a905a4e7b33fbc0f0c6bea543de0%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to