mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 13:14:05 +00:00
Add support for postgres schema
This commit is contained in:
parent
fd00be646e
commit
2ff3dd4283
5 changed files with 127 additions and 2 deletions
|
|
@ -60,6 +60,7 @@ return [
|
|||
'sqlite' => Stancl\Tenancy\TenantDatabaseManagers\SQLiteDatabaseManager::class,
|
||||
'mysql' => Stancl\Tenancy\TenantDatabaseManagers\MySQLDatabaseManager::class,
|
||||
'pgsql' => Stancl\Tenancy\TenantDatabaseManagers\PostgreSQLDatabaseManager::class,
|
||||
'schema' => Stancl\Tenancy\TenantDatabaseManagers\PostgreSQLSchemaManager::class
|
||||
],
|
||||
'database_manager_connections' => [
|
||||
// Connections used by TenantDatabaseManagers. This tells, for example, the
|
||||
|
|
@ -67,7 +68,9 @@ return [
|
|||
'sqlite' => 'sqlite',
|
||||
'mysql' => 'mysql',
|
||||
'pgsql' => 'pgsql',
|
||||
'schema' => 'pgsql'
|
||||
],
|
||||
'using_schema_connection' => false, // Only work with pgsql connection
|
||||
'bootstrappers' => [
|
||||
// Tenancy bootstrappers are executed when tenancy is initialized.
|
||||
// Their responsibility is making Laravel features tenant-aware.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue