Re: migrate id field from integer to biginter (probable bug)

2017-06-11 Thread Josh Schneier
Opened a bug here: https://code.djangoproject.com/ticket/28298 and have a working patch here: https://github.com/django/django/pull/8628 -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from

Re: migrate id field from integer to biginter (probable bug)

2017-06-02 Thread Tim Graham
Yes, it looks like a bug. The incorrect SQL is added here: https://github.com/django/django/blob/8149bd00d8b8af816a683e5ecc0e204f344616f5/django/db/backends/base/schema.py#L745-L749 On Wednesday, May 31, 2017 at 1:34:07 PM UTC-4, drakkan wrote: > > Hi, > > I have two models like these: > > class

migrate id field from integer to biginter (probable bug)

2017-05-31 Thread drakkan
Hi, I have two models like these: class Allarme(models.Model): class Registrazione(models.Model): allarme = models.ForeignKey(Allarme, blank=True, null=True, on_delete=models.DO_NOTHING, db_constraint=False) now I want to change id field for these models from int to big