1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

Fixed #29517 -- Added support for SQLite column check constraints on positive integer fields.

This commit is contained in:
Tim Graham
2018-06-22 14:42:51 -04:00
parent 7410618528
commit b9cf764be6
4 changed files with 34 additions and 2 deletions

View File

@@ -218,7 +218,10 @@ Database backend API
Miscellaneous
-------------
* ...
* On SQLite, ``PositiveIntegerField`` and ``PositiveSmallIntegerField`` now
include a check constraint to prevent negative values in the database. If you
have existing invalid data and run a migration that recreates a table, you'll
see ``CHECK constraint failed``.
.. _deprecated-features-2.2: