﻿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
25884	migrate --run-syncdb doesn't work when specifying a database	Gertjan Oude Lohuis	Sarah Guermond	"As [https://docs.djangoproject.com/en/1.9/ref/django-admin/#django-admin-option---run-syncdb the docs state], ""the --run-syncdb option allows creating tables for apps without migrations."". However, this doesn't seem to work. To demonstrate this, [https://github.com/gertjanol/django-test I've created a very simple Django project] from the first steps of the tutorial. When running 'python manage.py migrate --run-syncdb polls' I get the error ""CommandError: App 'polls' does not have migrations."", while I expected an sqlite-database with the structure.

It makes no difference if I created a 'migrations' directory with just an '__init__.py'.

Is this a bug, or is this intended behaviour and are the docs off (or do I not understand them)?

I've managed to get the command working with some minor adjustments to https://github.com/django/django/blob/1.9/django/core/management/commands/migrate.py, but I'm too unfamiliar with the code to be sure I didn't break anything else. I'll try to whip up a PR though."	Bug	closed	Migrations	1.9	Normal	fixed	syncdb, migrations		Accepted	1	0	0	1	0	0
