﻿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
25012	Migrations don't make foreign key type changes	Hedde van der Heide		"Example:


{{{#!python
class Foo(models.Model):
    id = models.AutoField()  # Now change this to models.CharField(primary_key=True, max_length=...) and migrate, the migration doesn't complain    

class Bar(object):
    foo = models.ForeignKey(Foo)  # but Postgres will still say Bar.foo is an Integer value.
}}}

{{{
DataError at /myapp/bar/add/
invalid input syntax for integer: ""TEST""
LINE 1: ...d"") VALUES (NULL, 'TEST', ...
}}}"	Bug	closed	Migrations	dev	Normal	fixed	migrations	Tyson Clugg Samuel Bishop	Accepted	0	0	0	0	0	0
