From 5aed290de6028ea2329d5dde18bab9c64ac826ed Mon Sep 17 00:00:00 2001 From: lukinovec Date: Tue, 23 May 2023 10:28:59 +0200 Subject: [PATCH] Delete complete todos --- src/Jobs/CreatePostgresUserForTenant.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Jobs/CreatePostgresUserForTenant.php b/src/Jobs/CreatePostgresUserForTenant.php index 48c6339f..1ecda635 100644 --- a/src/Jobs/CreatePostgresUserForTenant.php +++ b/src/Jobs/CreatePostgresUserForTenant.php @@ -38,8 +38,6 @@ class CreatePostgresUserForTenant implements ShouldQueue $password = $this->tenant->database()->getPassword() ?? 'password'; // Create the user only if it doesn't already exist - // todo1 Create permissions for the user (e.g. permission to create records) - // todo1 Switch to the Postgres user on TenancyInitialized (purge central DB connection, change credentials in database.connections.pgsql, change database.connections.central to the pgsql connection) if (! count(DB::select("SELECT usename FROM pg_user WHERE usename = '$name';")) > 0) { DB::statement("CREATE USER \"$name\" LOGIN PASSWORD '$password';"); }