diff options
| author | Nick Pope <nick.pope@flightdataservices.com> | 2018-09-12 21:53:24 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2018-11-19 14:06:01 -0500 |
| commit | ebd270627c3350101959fac59650259f2d33efcf (patch) | |
| tree | 039d6f112d175f729e6fd75db81f5c700546333f /docs/ref | |
| parent | 06076999026091cf007d8ea69146340a361259f8 (diff) | |
Refs #29722 -- Added introspection of partitions for PostgreSQL.
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/django-admin.txt | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt index c1844b8e64..6a3294788a 100644 --- a/docs/ref/django-admin.txt +++ b/docs/ref/django-admin.txt @@ -352,7 +352,8 @@ file) to standard output. You may choose what tables or views to inspect by passing their names as arguments. If no arguments are provided, models are created for views only if -the :option:`--include-views` option is used. +the :option:`--include-views` option is used. Models for partition tables are +created on PostgreSQL if the :option:`--include-partitions` option is used. Use this if you have a legacy database with which you'd like to use Django. The script will inspect the database and create a model for each table within @@ -404,6 +405,8 @@ PostgreSQL * Models are created for foreign tables. * Models are created for materialized views if :option:`--include-views` is used. +* Models are created for partition tables if + :option:`--include-partitions` is used. .. versionchanged:: 2.2 @@ -413,6 +416,14 @@ PostgreSQL Specifies the database to introspect. Defaults to ``default``. +.. django-admin-option:: --include-partitions + +.. versionadded:: 2.2 + +If this option is provided, models are also created for partitions. + +Only support for PostgreSQL is implemented. + .. django-admin-option:: --include-views .. versionadded:: 2.1 |
