#25975: sqlmigrate for pending migrations
-----------------------------+--------------------
     Reporter:  stylesen     |      Owner:  nobody
         Type:  New feature  |     Status:  new
    Component:  Migrations   |    Version:  1.9
     Severity:  Normal       |   Keywords:
 Triage Stage:  Unreviewed   |  Has patch:  1
Easy pickings:  1            |      UI/UX:  0
-----------------------------+--------------------
 When there are no ''app_label'' and ''migration_name'' supplied to the
 `sqlmigrate` command the following error is given (instead of showing the
 forwards SQL statements of pending migrations):

 {{{#!sh
 # python manage.py sqlmigrate
 sqlmigrate: error: too few arguments
 ...
 }}}


 the above is not same as the behavior found in `migrate` command, wherein
 all pending migrations are carried out in `migrate` command. Similarly,
 `sqlmigrate` probably should show the SQL statements for all pending
 migrations when there is no "app_label" and "migration_name" are supplied
 for forwards migration. This also proves useful on a project where
 multiple apps are included.

 The way in which db migration APIs are available currently in django, we
 cannot show all SQL statements for "backwards" migration, hence only when
 "app_label" and "migration_name" are provided we can show SQL statements
 for "backwards" migration which is the current behavior.

--
Ticket URL: <https://code.djangoproject.com/ticket/25975>
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/051.44b9384f087ef15dc93377861837c679%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to