API - fix down revision

This commit is contained in:
Sam 2022-07-19 10:26:21 +02:00
parent 397c711992
commit e5a6ae4f18

View File

@ -1,7 +1,7 @@
"""add ascent record
Revision ID: cd0e6cf83207
Revises: e30007d681cb
Revises: 5e3a3a31c432
Create Date: 2022-03-22 20:21:13.661883
"""
@ -11,7 +11,7 @@ import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'cd0e6cf83207'
down_revision = 'e30007d681cb'
down_revision = '5e3a3a31c432'
branch_labels = None
depends_on = None
@ -23,6 +23,7 @@ def upgrade():
"""
)
def downgrade():
op.execute("ALTER TYPE record_types RENAME TO record_types_old")
op.execute("CREATE TYPE record_types AS ENUM('AS', 'FD', 'LD', 'MS')")