"""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 from sqlalchemy.dialects import mysql 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', mysql.INTEGER(display_width=11), nullable=False), sa.Column('public_id', mysql.VARCHAR(length=255), nullable=False), sa.Column('repository_id', mysql.INTEGER(display_width=11), autoincrement=False, nullable=False), sa.Column('parameters', mysql.LONGTEXT(), nullable=False), sa.ForeignKeyConstraint(['repository_id'], [u'repository.id'], name=u'fk_webhook_repository_repository_id'), sa.PrimaryKeyConstraint('id'), mysql_default_charset=u'latin1', mysql_engine=u'InnoDB' ) ### end Alembic commands ###