Skip to content

Commit

Permalink
Safely Downgrade Bug Fix
Browse files Browse the repository at this point in the history
Fixing a bug that fails on downgrade.  This will allow this migration to safely upgrade and downgrade without problems
  • Loading branch information
P0NDER0SA authored May 28, 2024
1 parent 43d07f0 commit 29404fd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions migrations/versions/0451_create_db_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ def upgrade():
op.execute(f"GRANT {super_role} TO {role} WITH ADMIN OPTION;")


def downgrade():
return


def create_role_if_not_exist(role):
"""
Makes sure the expected user exists in the database before performing the GRANT USER operation.
Expand Down

0 comments on commit 29404fd

Please sign in to comment.