Skip to content

Commit

Permalink
Update 0451_create_db_users.py
Browse files Browse the repository at this point in the history
fixing bug for role grant
  • Loading branch information
P0NDER0SA authored May 28, 2024
1 parent de2cc87 commit 9720b6f
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_user} TO {role} WITH ADMIN OPTION;")


def create_role_if_not_exist(role):
Expand Down

0 comments on commit 9720b6f

Please sign in to comment.