#35416: Removing a primary_key field causes a migration crash
-----------------------------+--------------------------------------
     Reporter:  Sarah Boyce  |                    Owner:  nobody
         Type:  Bug          |                   Status:  new
    Component:  Migrations   |                  Version:  dev
     Severity:  Normal       |               Resolution:
     Keywords:               |             Triage Stage:  Unreviewed
    Has patch:  0            |      Needs documentation:  0
  Needs tests:  0            |  Patch needs improvement:  0
Easy pickings:  0            |                    UI/UX:  0
-----------------------------+--------------------------------------
Comment (by Simon Charette):

 I would qualify this as a duplicate of #22997 as changing a model from

 {{{#!python
 class MySimpleModel(models.Model):
     some_pk = models.IntegerField(primary_key=True)
 }}}

 to

 {{{#!python
 class MySimpleModel(models.Model):
     pass
 }}}

 Is exactly ''removing an explicit primary key''.

 The ticket also describes the questioner asking about providing a default
 value.

 I think that your first instinct was right, this is the same issue which
 is not specific to Postgres.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35416#comment:2>
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018f2f6377e2-1c2ac120-7426-4aa2-b1ab-dd39d18722e9-000000%40eu-central-1.amazonses.com.

Reply via email to