1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 12:54:05 +00:00

Delete the UUID-specific logic, make RLS possible with non-UUID primary keys

This commit is contained in:
lukinovec 2023-05-10 15:36:07 +02:00
parent 90a0343223
commit fcb54cbe8e
2 changed files with 22 additions and 64 deletions

View file

@ -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}\"");
}
}
}