mirror of
https://github.com/django/django.git
synced 2025-07-04 17:59:13 +00:00
boulder-oracle-sprint: Added documentation for the db_tablespace options and Oracle coercion of the null option.
git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@5276 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
310ae7eccc
commit
e7cf3ed989
@ -456,6 +456,10 @@ has ``null=True``, that means it has two possible values for "no data":
|
|||||||
possible values for "no data;" Django convention is to use the empty
|
possible values for "no data;" Django convention is to use the empty
|
||||||
string, not ``NULL``.
|
string, not ``NULL``.
|
||||||
|
|
||||||
|
Due to database limitations when using the Oracle backend, the ``null=True``
|
||||||
|
option will be coerced for string-based fields, and the value ``NULL`` will
|
||||||
|
be stored to denote the empty string.
|
||||||
|
|
||||||
``blank``
|
``blank``
|
||||||
~~~~~~~~~
|
~~~~~~~~~
|
||||||
|
|
||||||
@ -550,6 +554,13 @@ scenes.
|
|||||||
If ``True``, ``django-admin.py sqlindexes`` will output a ``CREATE INDEX``
|
If ``True``, ``django-admin.py sqlindexes`` will output a ``CREATE INDEX``
|
||||||
statement for this field.
|
statement for this field.
|
||||||
|
|
||||||
|
``db_tablespace``
|
||||||
|
~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
If this field is indexed, the name of the database tablespace to use for the
|
||||||
|
index. The default is the ``db_tablespace`` of the model, if any. If the
|
||||||
|
backend doesn't support tablespaces, this option is ignored.
|
||||||
|
|
||||||
``default``
|
``default``
|
||||||
~~~~~~~~~~~
|
~~~~~~~~~~~
|
||||||
|
|
||||||
@ -960,6 +971,12 @@ If your database table name is an SQL reserved word, or contains characters
|
|||||||
that aren't allowed in Python variable names -- notably, the hyphen --
|
that aren't allowed in Python variable names -- notably, the hyphen --
|
||||||
that's OK. Django quotes column and table names behind the scenes.
|
that's OK. Django quotes column and table names behind the scenes.
|
||||||
|
|
||||||
|
``db_tablespace``
|
||||||
|
-----------------
|
||||||
|
|
||||||
|
The name of the database tablespace to use for the model. If the backend
|
||||||
|
doesn't support tablespaces, this option is ignored.
|
||||||
|
|
||||||
``get_latest_by``
|
``get_latest_by``
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user