#25012: Migration doesn't seem to detect foreignKey type changes
-------------------------------+----------------------------------
Reporter: Hedde | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 1.8
Severity: Normal | Keywords: postgres, migrations
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+----------------------------------
Example:
{{{
#!div style="font-size: 80%"
Code highlighting:
{{{#!python
class Foo(models.Model):
id = models.AutoField() # Now change this to
models.CharField(primary_key=True) 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.
}}}
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/25012>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/048.fb9dbc860f9c60e5e09ae7f5ee3b8e55%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.