Skip to content

Instantly share code, notes, and snippets.

@kaniak274
Created October 12, 2020 15:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kaniak274/dcdb705f7e9377964301e48b87ec24f6 to your computer and use it in GitHub Desktop.
Save kaniak274/dcdb705f7e9377964301e48b87ec24f6 to your computer and use it in GitHub Desktop.
Upgrade example for the article
def upgrade():
with op.get_context().autocommit_block():
op.execute("ALTER TYPE status ADD VALUE 'REJECTED'")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment