3.x redesign

This commit is contained in:
Samuel Štancl 2020-06-08 21:20:15 +02:00
parent 857122540f
commit f8f354c323
229 changed files with 201175 additions and 22440 deletions

View file

@ -0,0 +1,15 @@
---
title: PostgreSQL schema separation
description: PostgreSQL schema separation
extends: _layouts.documentation
section: content
---
# PostgreSQL schema separation {#postgresql-schema-separation}
If you're using PostgreSQL, you can separate tenant databases by *schemas* instead of *databases*.
To enable this, set the config like this:
- `tenancy.database.separate_by`: `'schema'` to tell the package how we're separating databases
- `tenancy.database_managers.pgsql`: `Stancl\Tenancy\TenantDatabaseManagers\PostgreSQLSchemaManager::class` to tell the package to use the schema creator/deleter instead of database creator/deleter for pgsql databases.