"""Remove the old webhooks table. Revision ID: f42b0ea7a4d Revises: 4fdb65816b8d Create Date: 2014-09-03 13:43:23.391464 """ # revision identifiers, used by Alembic. revision = 'f42b0ea7a4d' down_revision = '4fdb65816b8d' from alembic import op import sqlalchemy as sa def upgrade(tables): ### commands auto generated by Alembic - please adjust! ### op.drop_table('webhook') ### end Alembic commands ### def downgrade(tables): ### commands auto generated by Alembic - please adjust! ### op.create_table('webhook', sa.Column('id', sa.Integer(), nullable=False), sa.Column('public_id', sa.String(length=255), nullable=False), sa.Column('repository_id', sa.Integer(), nullable=False), sa.Column('parameters', sa.Text(), nullable=False), sa.ForeignKeyConstraint(['repository_id'], ['repository.id'], ), sa.PrimaryKeyConstraint('id') ) ### end Alembic commands ###