You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix migration 0011 pk swap failing on Django 5.0/5.1 + SQLite
On Django 5.0/5.1, RemoveField on a primary key column implicitly re-injects
an auto id field during the SQLite table rebuild, so the subsequent
RenameField(tmp_uuid → id) fails with "duplicate column name: id". Replace
the RemoveField + RenameField + AlterField database operations with a
SeparateDatabaseAndState wrapping a RunPython that does a single explicit
table reconstruction on SQLite, and standard ALTER TABLE DDL on other
databases (PostgreSQL, MySQL). State operations are unchanged.
Bump pymissive and django-pymissive to 1.3.0.
Tested locally against Django 5.0, 5.1, and 5.2 — 144 passed on each.
Co-authored-by: Cursor <cursoragent@cursor.com>