mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #17713 -- Renamed BaseDatabaseFeatures.allows_primary_key_0 to allows_auto_pk_0.
MySQL does allow primary key with value 0. It only forbids autoincrement primary key with value 0. Thanks Claude Paroz for the report.
This commit is contained in:
@@ -1010,6 +1010,12 @@ Miscellaneous
|
||||
to ``False``). If you maintain a custom database backend, you should check
|
||||
that method.
|
||||
|
||||
* The ``django.db.backends.BaseDatabaseFeatures.allows_primary_key_0``
|
||||
attribute has been renamed to ``allows_auto_pk_0`` to better describe it.
|
||||
It's ``True`` for all database backends included with Django except MySQL
|
||||
which does allow primary keys with value 0. It only forbids *autoincrement*
|
||||
primary keys with value 0.
|
||||
|
||||
.. _deprecated-features-1.7:
|
||||
|
||||
Features deprecated in 1.7
|
||||
|
||||
Reference in New Issue
Block a user