From 03f063ae192bdf73c3e0b8ef8ae6973b01bcd0b9 Mon Sep 17 00:00:00 2001 From: Cory Francis Myers Date: Mon, 27 Jun 2022 15:51:00 -0700 Subject: [PATCH] fix: restore enum values --- alembic/versions/d7c8af95bc8e_.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/alembic/versions/d7c8af95bc8e_.py b/alembic/versions/d7c8af95bc8e_.py index 42fc03ef84..161c867366 100644 --- a/alembic/versions/d7c8af95bc8e_.py +++ b/alembic/versions/d7c8af95bc8e_.py @@ -277,6 +277,31 @@ def upgrade(): ) # ### end Alembic commands ### + # Set enum values: + conn = op.get_bind() + + # downloaderrors (from original Alembic version 7f682532afa2) + conn.execute( + """ + INSERT INTO downloaderrors + ('name') + VALUES + ('CHECKSUM_ERROR'), + ('DECRYPTION_ERROR'); + """ + ) + + # replysendstatuses (from original Alembic version 86b01b6290da) + conn.execute( + """ + INSERT INTO replysendstatuses + ('name') + VALUES + ('PENDING'), + ('FAILED'); + """ + ) + def downgrade(): # ### commands auto generated by Alembic - please adjust! ###