﻿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
27422	`makemigrations` fails to migrate ForeignKey types across app boundaries	Andrew Badr	nobody	"I am using django-social-auth and a custom User model. I changed my User model to use a BigInteger `id` field. Everything looked ok, and I pushed into production, then started getting not-super-informative exceptions about `integer out of range`. I tracked it down to this bug—specifically, I have a django-social-auth model with a foreignkey to User—and I was able to reproduce it on a clean Django project. This kind of migration should either work correctly or raise an error.

Steps to reproduce:
1. Create Model A
2. Create Model B with a ForeignKey to Model A
3. Alter the type of the primary key on A, e.g. making it a BigInteger
4. manage.py makemigrations and migrate

Expected behavior:
The type of the foreign-key column in the table for column B is changed to the new type.

Actual behavior:
The type of the foreign-key column in the table for column B is changed to the new type if and only if A and B are in the same app."	Bug	new	Database layer (models, ORM)	1.10	Normal				Unreviewed	0	0	0	0	0	0
