Skip to content

Commit

Permalink
fixing bug for role grant (#2180)
Browse files Browse the repository at this point in the history
* Update 0451_create_db_users.py

fixing bug for role grant

* Update migrations/versions/0451_create_db_users.py

Co-authored-by: Pat Heard <[email protected]>

---------

Co-authored-by: Pat Heard <[email protected]>
  • Loading branch information
P0NDER0SA and patheard authored May 28, 2024
1 parent de2cc87 commit 43d07f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion migrations/versions/0451_create_db_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def upgrade():
create_role_if_not_exist(super_role)
for role in roles:
create_role_if_not_exist(role)
op.execute(f"GRANT {role} TO {super_role} WITH ADMIN OPTION;")
op.execute(f"GRANT {super_role} TO {role} WITH ADMIN OPTION;")


def create_role_if_not_exist(role):
Expand Down

0 comments on commit 43d07f0

Please sign in to comment.