Add signature support for Django 2.2+ constraints.

Review Request #11119 — Created Aug. 4, 2020 and submitted — Latest diff uploaded

Information

Django Evolution
master

Reviewers

Constraints are a feature available in Django 2.2+. They're a way of
listing explicit constraints on a table, for ensuring that a set of
fields are unique (potentially with a conditional query that must also
be met), or for ensuring that a condition passes when inserting data.
These are dependent on the support in the database backend.

This initial change introduces signature support for
serializing/deserializing information on conditions specified on a
model. They're not currently used as part of the evolution process, but
that will be arriving in an upcoming change.

Unit tests pass for all versions of Python and Django.

Diff Revision 1 (Latest)

Commits

First Last Summary ID Author
Add signature support for Django 2.2+ constraints.
Constraints are a feature available in Django 2.2+. They're a way of listing explicit constraints on a table, for ensuring that a set of fields are unique (potentially with a conditional query that must also be met), or for ensuring that a condition passes when inserting data. These are dependent on the support in the database backend. This initial change introduces signature support for serializing/deserializing information on conditions specified on a model. They're not currently used as part of the evolution process, but that will be arriving in an upcoming change.
05cd85a4e09f2a62adcac8a40d5ef903c1231617 Christian Hammond
django_evolution/signature.py
django_evolution/support.py
django_evolution/tests/test_signature.py
Loading...