File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -314,10 +314,16 @@ check the indexes on the table and delete any extra indexes and create any missi
314
314
is done through the index name, so if you use custom names for your indexes, it might happen that it won't get updated
315
315
on change of the content but not the name.
316
316
317
- ### Custom Schema
317
+ ### Schemas
318
318
319
- You can define any table name you wish for your views. They can even live inside your own custom
320
- [ PostgreSQL schema] ( http://www.postgresql.org/docs/current/static/ddl-schemas.html ) .
319
+ By default, the views will get created in the schema of the database, this is usually ` public ` .
320
+ The package supports the database defining the schema in the settings by using
321
+ options (` "OPTIONS": {"options": "-c search_path=custom_schema"} ` ).
322
+
323
+ The package ` django-tenants ` is supported as well, if used.
324
+
325
+ It is possible to define the schema explicitly for a view, if different from the default schema of the database, like
326
+ this:
321
327
322
328
``` python
323
329
from django_pgviews import view as pg
You can’t perform that action at this time.
0 commit comments