mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 16:54:05 +00:00
SqlServer Support
Added SqlSrv support (including permission control)
This commit is contained in:
parent
d4a99011e6
commit
2b14e21cc4
3 changed files with 110 additions and 1 deletions
|
|
@ -61,6 +61,7 @@ return [
|
|||
'sqlite' => Stancl\Tenancy\TenantDatabaseManagers\SQLiteDatabaseManager::class,
|
||||
'mysql' => Stancl\Tenancy\TenantDatabaseManagers\MySQLDatabaseManager::class,
|
||||
'pgsql' => Stancl\Tenancy\TenantDatabaseManagers\PostgreSQLDatabaseManager::class,
|
||||
'sqlsrv' => Stancl\Tenancy\TenantDatabaseManagers\SQLServerDatabaseManager::class,
|
||||
|
||||
/**
|
||||
* Use this database manager for MySQL to have a DB user created for each tenant database.
|
||||
|
|
@ -68,7 +69,14 @@ return [
|
|||
*/
|
||||
// 'mysql' => Stancl\Tenancy\TenantDatabaseManagers\PermissionControlledMySQLDatabaseManager::class,
|
||||
|
||||
/**
|
||||
/**
|
||||
* Use this database manager for SQlServer to have a DB user created for each tenant database.
|
||||
* You can customize the grants given to these users by changing the $GrantPermissions property.
|
||||
*/
|
||||
|
||||
//'sqlsrv' => Stancl\Tenancy\TenantDatabaseManagers\PermissionControlledSQLServerDatabaseManager::class,
|
||||
|
||||
/**
|
||||
* Disable the pgsql manager above, and enable the one below if you
|
||||
* want to separate tenant DBs by schemas rather than databases.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue