-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minor cleanup changes #44
Conversation
@@ -106,7 +106,7 @@ public function preMigration(string $mainRoleName): void | |||
|
|||
$hasMainRoleOwnership = array_reduce( | |||
$mainRole, | |||
fn ($found, $v) => $found || $v['owner'] === $this->config->getTargetSnowflakeUser(), | |||
fn ($found, $v) => $found || $v['owner'] === $this->config->getTargetSnowflakeRole(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ownership je na roli ne na uživatele
$this->destinationConnection->grantRoleToUser( | ||
$this->config->getTargetSnowflakeUser(), | ||
$currentRole, | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jen přepsání - výsledek stejný
$this->destinationConnection->grantRoleToUser( | ||
$this->config->getTargetSnowflakeUser(), | ||
$role['granted_by'], | ||
); | ||
$this->destinationConnection->useRole($role['granted_by']); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nagrantování role uživateli pokud jí nemá - při cleanupu se zase odstraňuje
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
No description provided.