mirror of
https://github.com/django/django.git
synced 2025-06-05 03:29:12 +00:00
update some docs
This commit is contained in:
parent
de8af67680
commit
74f24cd998
@ -21,11 +21,16 @@ the :attr:`~django.db.models.Options.db_tablespace` option inside the model's
|
|||||||
``class Meta``. This option also affects tables automatically created for
|
``class Meta``. This option also affects tables automatically created for
|
||||||
:class:`~django.db.models.ManyToManyField`\ s in the model.
|
:class:`~django.db.models.ManyToManyField`\ s in the model.
|
||||||
|
|
||||||
You can use the :setting:`DEFAULT_TABLESPACE` setting to specify a default value
|
You can use `DEFAULT_TABLESPACE` in the :setting:`OPTIONS` part of your
|
||||||
for :attr:`~django.db.models.Options.db_tablespace`. This is useful for setting
|
database configuration in :setting:`DATABASES` to specify a default value for
|
||||||
a tablespace for the built-in Django apps and other applications whose code you
|
:attr:`~django.db.models.Options.db_tablespace`. This is useful for setting a
|
||||||
|
tablespace for the built-in Django apps and other applications whose code you
|
||||||
cannot control.
|
cannot control.
|
||||||
|
|
||||||
|
.. warning::
|
||||||
|
The :setting:`DEFAULT_TABLESPACE` global setting, which works the same way,
|
||||||
|
has been deprecated.
|
||||||
|
|
||||||
Declaring tablespaces for indexes
|
Declaring tablespaces for indexes
|
||||||
=================================
|
=================================
|
||||||
|
|
||||||
@ -36,13 +41,18 @@ For single field indexes, you can pass the
|
|||||||
to specify an alternate tablespace for the field's column index. If the column
|
to specify an alternate tablespace for the field's column index. If the column
|
||||||
doesn't have an index, the option is ignored.
|
doesn't have an index, the option is ignored.
|
||||||
|
|
||||||
You can use the :setting:`DEFAULT_INDEX_TABLESPACE` setting to specify
|
You can use `DEFAULT_INDEX_TABLESPACE` in the :setting:`OPTIONS` part of your
|
||||||
a default value for :attr:`~django.db.models.Field.db_tablespace`.
|
database configuration in :setting:`DATABASES` to specify a default value for
|
||||||
|
:attr:`~django.db.models.Field.db_tablespace`.
|
||||||
|
|
||||||
If :attr:`~django.db.models.Field.db_tablespace` isn't specified and you didn't
|
If :attr:`~django.db.models.Field.db_tablespace` isn't specified and you didn't
|
||||||
set :setting:`DEFAULT_INDEX_TABLESPACE`, the index is created in the same
|
set `DEFAULT_INDEX_TABLESPACE`, the index is created in the same
|
||||||
tablespace as the tables.
|
tablespace as the tables.
|
||||||
|
|
||||||
|
.. warning::
|
||||||
|
The :setting:`DEFAULT_INDEX_TABLESPACE` global setting, which works the
|
||||||
|
same way, has been deprecated.
|
||||||
|
|
||||||
An example
|
An example
|
||||||
==========
|
==========
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user