﻿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
26529	migration: Add argument or flag which indicates the current db	Kadir	nobody	"'''State:'''
Two DB's which should have all the same models.

'''Problem:'''
Running a RunPython migration on the second database fails since it still operates on the default database.

{{{
python manage.py migrate --database=seconddb
}}}

Except the hacky way, reading the sys.argv, there is no way to determine the current db to act upon that db.

'''Solution:'''
Add a parameter (or extend an existing) to include a variable ""database"" which contains the current db. 
{{{apps.get_model}}} should be able to get the schema for a specific db."	New feature	closed	Uncategorized	1.8	Normal	invalid	migration		Unreviewed	0	0	0	0	0	0
