From ebd270627c3350101959fac59650259f2d33efcf Mon Sep 17 00:00:00 2001 From: Nick Pope Date: Wed, 12 Sep 2018 21:53:24 +0100 Subject: Refs #29722 -- Added introspection of partitions for PostgreSQL. --- docs/ref/django-admin.txt | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'docs/ref') 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 -- cgit v1.3