• 
      

    Patch the SQLite backend to fix Alter Table breakages.

    Review Request #10869 — Created Jan. 29, 2020 and submitted

    Information

    Django Evolution
    master

    Reviewers

    When running SQLite 2.26+ and Django 1.11 through 2.1.4, an Alter Table
    would fail silently, causing problems further down the line. This was
    due to some behavioral changes in SQLite when altering tables that
    Django was not compatible with.

    Django 2.1.4 turns on the legacy_alter_table flag when preparing to
    edit schema. We now patch earlier versions of Django to do the same
    thing.

    Tested in a Python environment with these versions and reproduced
    the problem and the fix.

    Summary ID
    Patch the SQLite backend to fix Alter Table breakages.
    When running SQLite 2.26+ and Django 1.11 through 2.1.4, an Alter Table would fail silently, causing problems further down the line. This was due to some behavioral changes in SQLite when altering tables that Django was not compatible with. Django 2.1.4 turns on the `legacy_alter_table` flag when preparing to edit schema. We now patch earlier versions of Django to do the same thing.
    2429d2ca9dc4646e49d8af8eeb30e23e341ad2fe
    david
    1. Ship It!
    2. 
        
    chipx86
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to master (3e55936)