Add support for Django 1.11.

Review Request #9560 — Created Feb. 1, 2018 and submitted

Information

Django Evolution
master
a369a0a...

Reviewers

This introduces support for all database types on Django 1.11. The major
differences in this version have to do with how index names are
generated (again), how Postgres constraint-related SQL is generated
(again), and the introduction of yet another way of setting indexes on a
model.

Django 1.11 allows explict indexes to be defined by setting a model's
Meta.indexes to a list of models.Index instances, which can span
fields. This change introduces support for representing this in the
signature, to set new indexes in ChangeMeta, and to evolve these
changes.

It also handles the other compatibility issues for index names (which,
unfortunately, are not consistent between the new models.Index
instances and the older indexes) and changes to generated SQL.

Unit tests pass for all supported database types on Django 1.6 through
Django 1.11.

Description From Last Updated

Docstring? Especially since at first reading this method seems useless?

daviddavid

"indexes change"?

daviddavid
david
  1. 
      
  2. django_evolution/db/common.py (Diff revision 1)
     
     
    Show all issues

    Docstring? Especially since at first reading this method seems useless?

    1. It's an existing function. I just moved it within the file so it wasn't between two similar methods. I want to tackle cleanup of the rest of this file separately, since it needs love.

  3. django_evolution/mutators.py (Diff revision 1)
     
     
    Show all issues

    "indexes change"?

  4. 
      
chipx86
david
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to master (e4561d6)