API - fix down revision
This commit is contained in:
parent
397c711992
commit
e5a6ae4f18
@ -1,7 +1,7 @@
|
|||||||
"""add ascent record
|
"""add ascent record
|
||||||
|
|
||||||
Revision ID: cd0e6cf83207
|
Revision ID: cd0e6cf83207
|
||||||
Revises: e30007d681cb
|
Revises: 5e3a3a31c432
|
||||||
Create Date: 2022-03-22 20:21:13.661883
|
Create Date: 2022-03-22 20:21:13.661883
|
||||||
|
|
||||||
"""
|
"""
|
||||||
@ -11,7 +11,7 @@ import sqlalchemy as sa
|
|||||||
|
|
||||||
# revision identifiers, used by Alembic.
|
# revision identifiers, used by Alembic.
|
||||||
revision = 'cd0e6cf83207'
|
revision = 'cd0e6cf83207'
|
||||||
down_revision = 'e30007d681cb'
|
down_revision = '5e3a3a31c432'
|
||||||
branch_labels = None
|
branch_labels = None
|
||||||
depends_on = None
|
depends_on = None
|
||||||
|
|
||||||
@ -23,6 +23,7 @@ def upgrade():
|
|||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
def downgrade():
|
def downgrade():
|
||||||
op.execute("ALTER TYPE record_types RENAME TO record_types_old")
|
op.execute("ALTER TYPE record_types RENAME TO record_types_old")
|
||||||
op.execute("CREATE TYPE record_types AS ENUM('AS', 'FD', 'LD', 'MS')")
|
op.execute("CREATE TYPE record_types AS ENUM('AS', 'FD', 'LD', 'MS')")
|
||||||
|
Loading…
Reference in New Issue
Block a user