diff --git a/migrations/versions/0451_create_db_users.py b/migrations/versions/0451_create_db_users.py index cd2f5cb7fc..afe062a98e 100644 --- a/migrations/versions/0451_create_db_users.py +++ b/migrations/versions/0451_create_db_users.py @@ -22,7 +22,9 @@ def upgrade(): def downgrade(): - return + for role in roles: + op.execute(f"REVOKE {super_role} FROM {role};") + op.execute(f"DROP ROLE IF EXISTS {role};") def create_role_if_not_exist(role):