From 9720b6f7fbfef5adf24396445e4abb883871f7e7 Mon Sep 17 00:00:00 2001 From: Mike Pond <32133001+P0NDER0SA@users.noreply.github.com> Date: Tue, 28 May 2024 09:42:23 -0400 Subject: [PATCH] Update 0451_create_db_users.py fixing bug for role grant --- migrations/versions/0451_create_db_users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrations/versions/0451_create_db_users.py b/migrations/versions/0451_create_db_users.py index 2d7a812db0..969b7787b6 100644 --- a/migrations/versions/0451_create_db_users.py +++ b/migrations/versions/0451_create_db_users.py @@ -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):