Add support for all features on Index objects through Django 4.0.

Review Request #12214 — Created March 28, 2022 and submitted — Latest diff uploaded

Information

Django Evolution
release-2.x

Reviewers

Django Evolution has supported Meta.indexes and the Index object for
a while, but lacked an assortment of features present since Django 2.0.
These include:

  • db_tablespace (Django 2.0+)
  • condition (Django 2.2+)
  • opclasses (Django 2.2+)
  • expressions (Django 3.2+)
  • include (Django 3.2+)

This change introduces support for all of these features, allowing them
to evolve successfully.

Unit tests pass on all supported versions of Python, Django, and all
databases.

Diff Revision 1

This is not the most recent revision of the diff. The latest diff is revision 3. See what's changed.

orig
1
2
3

Commits

First Last Summary ID Author
Add support for all features on Index objects through Django 4.0.
Django Evolution has supported `Meta.indexes` and the `Index` object for a while, but lacked an assortment of features present since Django 2.0. These include: * `db_tablespace` (Django 2.0+) * `condition` (Django 2.2+) * `opclasses` (Django 2.2+) * `expressions` (Django 3.2+) * `include` (Django 3.2+) This change introduces support for all of these features, allowing them to evolve successfully.
4dadac54cd98f678ee19cd66aeb8a9f80dd10dbe Christian Hammond
django_evolution/diff.py
django_evolution/mock_models.py
django_evolution/mutations.py
django_evolution/mutators.py
django_evolution/db/common.py
django_evolution/db/state.py
django_evolution/tests/test_change_meta.py
django_evolution/tests/db/mysql.py
django_evolution/tests/db/postgresql.py
django_evolution/tests/db/sqlite3.py
Loading...