mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 20:54:03 +00:00
Delete the UUID-specific logic, make RLS possible with non-UUID primary keys
This commit is contained in:
parent
90a0343223
commit
fcb54cbe8e
2 changed files with 22 additions and 64 deletions
|
|
@ -63,6 +63,7 @@ class CreatePostgresUserForTenant implements ShouldQueue
|
|||
$table = $model->getTable();
|
||||
|
||||
$databaseManager->database()->statement("GRANT ALL ON {$table} TO \"{$userName}\"");
|
||||
$databaseManager->database()->statement("GRANT USAGE ON ALL SEQUENCES IN SCHEMA public TO \"{$userName}\"");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue