"""empty message

Revision ID: 1f4a0dbc3487
Revises: 
Create Date: 2017-03-29 00:32:10.409459

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '1f4a0dbc3487'
down_revision = None
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.create_table('result',
    sa.Column('id', sa.Integer(), nullable=False),
    sa.Column('reg', sa.String(length=128), nullable=True),
    sa.Column('sub1', sa.String(length=8), nullable=True),
    sa.Column('sub2', sa.String(length=8), nullable=True),
    sa.Column('sub3', sa.String(length=8), nullable=True),
    sa.Column('sub4', sa.String(length=8), nullable=True),
    sa.Column('sub5', sa.String(length=8), nullable=True),
    sa.Column('sub6', sa.String(length=8), nullable=True),
    sa.Column('sub7', sa.String(length=8), nullable=True),
    sa.Column('sub8', sa.String(length=8), nullable=True),
    sa.PrimaryKeyConstraint('id')
    )
    op.create_table('subject',
    sa.Column('id', sa.Integer(), nullable=False),
    sa.Column('name', sa.String(length=128), nullable=True),
    sa.Column('code', sa.String(length=128), nullable=True),
    sa.PrimaryKeyConstraint('id')
    )
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_table('subject')
    op.drop_table('result')
    # ### end Alembic commands ###
