nopaque/migrations/versions/260b57d5f4e7_.py
2022-10-04 15:33:51 +02:00

29 lines
785 B
Python

"""Remove transkribus_name column from transkribus_htr_models table
Revision ID: 260b57d5f4e7
Revises: 2c4e27331ccb
Create Date: 2022-10-04 13:26:47.186931
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '260b57d5f4e7'
down_revision = '2c4e27331ccb'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('transkribus_htr_models', 'transkribus_name')
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('transkribus_htr_models', sa.Column('transkribus_name', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
# ### end Alembic commands ###