Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

Commit

Permalink
autocommit enum field changes so we can use them in the subsequent mi…
Browse files Browse the repository at this point in the history
…gration
  • Loading branch information
Sean Preston committed Mar 31, 2022
1 parent 3376b03 commit ae8a648
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@


def upgrade():
op.execute("alter type privacyrequeststatus add value 'approved'")
op.execute("alter type privacyrequeststatus add value 'denied'")
with op.get_context().autocommit_block():
op.execute("alter type privacyrequeststatus add value 'approved'")
op.execute("alter type privacyrequeststatus add value 'denied'")

op.add_column(
"privacyrequest",
Expand Down

0 comments on commit ae8a648

Please sign in to comment.