"""plugin_git add webhook fields

Revision ID: bc3a68b5b65e
Revises: 0c7301a8970c
Create Date: 2022-12-01 17:15:00.715042

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = 'bc3a68b5b65e'
down_revision = '0c7301a8970c'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('cmf_plugin_git', sa.Column('webhook_ext_id', sa.String(), nullable=True))
    op.add_column('cmf_plugin_git', sa.Column('webhook_insecure_ssl', sa.Boolean(), nullable=True))
    op.add_column('cmf_plugin_git', sa.Column('webhook_secret', sa.String(), nullable=True))
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column('cmf_plugin_git', 'webhook_secret')
    op.drop_column('cmf_plugin_git', 'webhook_insecure_ssl')
    op.drop_column('cmf_plugin_git', 'webhook_ext_id')
    # ### end Alembic commands ###
