#35589: AlterField should raise an error when changing primary key
----------------------------------+--------------------------------------
     Reporter:  Csirmaz Bendegúz  |                    Owner:  (none)
         Type:  New feature       |                   Status:  closed
    Component:  Migrations        |                  Version:  dev
     Severity:  Normal            |               Resolution:  worksforme
     Keywords:  primary key       |             Triage Stage:  Unreviewed
    Has patch:  0                 |      Needs documentation:  0
  Needs tests:  0                 |  Patch needs improvement:  0
Easy pickings:  0                 |                    UI/UX:  0
----------------------------------+--------------------------------------
Comment (by Csirmaz Bendegúz):

 Replying to [comment:4 Sarah Boyce]:
 > Given that we support it in some cases, and are actively working on
 trying to resolve bugs in specific cases (#22997), I think the path
 forward would be sharing the case you found where it doesn't work and that
 would be treated as a bug

 Yes, SQLite is an exception, it works on SQLite because the table is "re-
 made" on AlterField. It doesn't work on any other backend.

 I opened this ticket based on our discussion here:
 https://github.com/django/django/pull/18056#discussion_r1668771284
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35589#comment:6>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/01070190febc9557-a0648347-c75a-4a01-8888-2c2af87abe75-000000%40eu-central-1.amazonses.com.

Reply via email to