mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 09:24:02 +00:00
chore formatting
This commit is contained in:
parent
55bc56356f
commit
ec792cd9c6
2 changed files with 9 additions and 7 deletions
|
|
@ -152,7 +152,7 @@ class CreateUserWithRLSPolicies extends Command
|
|||
}
|
||||
|
||||
/** @return \stdClass|null */
|
||||
protected function findTableRLSPolicy(string $table): object|null
|
||||
protected function findTableRLSPolicy(string $table, string $type): object|null
|
||||
{
|
||||
return DB::selectOne(<<<SQL
|
||||
SELECT * FROM pg_policies
|
||||
|
|
|
|||
|
|
@ -249,9 +249,11 @@ class TableRLSManager implements RLSPolicyManager
|
|||
// -1 because the last item is the tenant table reference which is not a nested where
|
||||
for ($i = count($path) - 1; $i > 0; $i--) {
|
||||
$query .= str_repeat(' ', $i * 4) . ")\n";
|
||||
} // closing for CREATE POLICY
|
||||
}
|
||||
|
||||
return $query . ');';
|
||||
$query .= ');'; // closing for CREATE POLICY
|
||||
|
||||
return $query;
|
||||
}
|
||||
|
||||
protected function getComment(string $tableName, string $columnName): string|null
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue