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:
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user