﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
25975	sqlmigrate for pending migrations	Senthil Kumaran	nobody	"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."	New feature	closed	Migrations	1.9	Normal	duplicate			Unreviewed	1	0	0	0	1	0
