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

chore formatting

This commit is contained in:
Justin van Elst 2025-01-09 10:54:17 +01:00
parent 55bc56356f
commit ec792cd9c6
No known key found for this signature in database
2 changed files with 9 additions and 7 deletions

View file

@ -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

View file

@ -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