fossasia/open-event-orga-server

View on GitHub
migrations/versions/af0b6ab086b7_.py

Summary

Maintainability
B
6 hrs
Test Coverage
"""empty message

Revision ID: af0b6ab086b7
Revises: d01ead213e8e
Create Date: 2016-07-31 11:54:52.225355

"""

# revision identifiers, used by Alembic.
revision = 'af0b6ab086b7'
down_revision = 'd01ead213e8e'

from alembic import op
import sqlalchemy as sa
import sqlalchemy_utils


def upgrade():
    ### commands auto generated by Alembic - please adjust! ###
    op.add_column('events', sa.Column('tax_allow', sa.Boolean(), nullable=True))
    op.add_column('events_version', sa.Column('tax_allow', sa.Boolean(), autoincrement=False, nullable=True))
    ### end Alembic commands ###


def downgrade():
    ### commands auto generated by Alembic - please adjust! ###
    op.drop_column('events_version', 'tax_allow')
    op.drop_column('events', 'tax_allow')
    ### end Alembic commands ###