"""Add Webmention.webmention_type Revision ID: fadfd359ce78 Revises: b28c0551c236 Create Date: 2022-11-16 19:42:56.925512+00:00 """ import sqlalchemy as sa from alembic import op # revision identifiers, used by Alembic. revision = 'fadfd359ce78' down_revision = 'b28c0551c236' branch_labels = None depends_on = None def upgrade() -> None: # ### commands auto generated by Alembic - please adjust! ### with op.batch_alter_table('webmention', schema=None) as batch_op: batch_op.add_column(sa.Column('webmention_type', sa.Enum('UNKNOWN', 'LIKE', 'REPLY', 'REPOST', name='webmentiontype'), nullable=True)) # ### end Alembic commands ### def downgrade() -> None: # ### commands auto generated by Alembic - please adjust! ### with op.batch_alter_table('webmention', schema=None) as batch_op: batch_op.drop_column('webmention_type') # ### end Alembic commands ###