Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-jcieslak committed Jan 4, 2024
1 parent 8e15592 commit 9d0ab46
Show file tree
Hide file tree
Showing 2 changed files with 85 additions and 24 deletions.
5 changes: 5 additions & 0 deletions pkg/resources/grant_privileges_to_database_role.go
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,11 @@ func UpdateGrantPrivilegesToDatabaseRole(ctx context.Context, d *schema.Resource
}
}

if d.HasChange("all_privileges") {
_, now := d.GetChange("all_privileges")
id.AllPrivileges = now.(bool)
}

if d.HasChange("privileges") {
before, after := d.GetChange("privileges")
privilegesBeforeChange := expandStringList(before.(*schema.Set).List())
Expand Down
Loading

0 comments on commit 9d0ab46

Please sign in to comment.