Skip to content

Commit

Permalink
Update 0451_create_db_users.py
Browse files Browse the repository at this point in the history
After further discussions with the team, we have decided that we should make our downgrades more representative of a reversal of what an upgrade does, but while also safely been tested for upgrade and downgrade paths
  • Loading branch information
P0NDER0SA authored May 29, 2024
1 parent 1cd72c9 commit 94d6a55
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion migrations/versions/0451_create_db_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 94d6a55

Please sign in to comment.