mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-04 19:24:02 +00:00
Fix code style (php-cs-fixer)
This commit is contained in:
parent
855ebfbd0b
commit
1111607495
1 changed files with 1 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ class CreatePostgresUserForTenant implements ShouldQueue
|
|||
$password = $this->tenant->database()->getPassword() ?? PostgresRLSBootstrapper::getDefaultPassword();
|
||||
|
||||
// Create the user only if it doesn't already exist
|
||||
if (! count(DB::select("SELECT usename FROM pg_user WHERE usename = $1", [$name])) > 0) {
|
||||
if (! count(DB::select('SELECT usename FROM pg_user WHERE usename = $1', [$name])) > 0) {
|
||||
$formattedStatement = DB::select("SELECT format('CREATE USER %I LOGIN PASSWORD %L', '$name', '$password');")[0]->format;
|
||||
DB::statement($formattedStatement);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue