"""empty message

Revision ID: 8b2cd63804b3
Revises: 29ca8250bd4a
Create Date: 2019-02-03 14:54:10.804975

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '8b2cd63804b3'
down_revision = '29ca8250bd4a'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.create_table('group_member',
    sa.Column('gid', sa.Integer(), nullable=True),
    sa.Column('uid', sa.Integer(), nullable=True),
    sa.ForeignKeyConstraint(['gid'], ['group.id'], ),
    sa.ForeignKeyConstraint(['uid'], ['member.id'], )
    )
    op.drop_table('group_user')
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.create_table('group_user',
    sa.Column('gid', sa.INTEGER(), autoincrement=False, nullable=True),
    sa.Column('uid', sa.INTEGER(), autoincrement=False, nullable=True),
    sa.ForeignKeyConstraint(['gid'], ['group.id'], name='group_user_gid_fkey'),
    sa.ForeignKeyConstraint(['uid'], ['user.id'], name='group_user_uid_fkey')
    )
    op.drop_table('group_member')
    # ### end Alembic commands ###
