Blob Blame Raw
"""
Add assessor notes to assessment questions.

Revision ID: 132dc68235a
Revises: 29c9fbe9c7f
Create Date: 2016-05-26 15:46:19.263781

"""

# revision identifiers, used by Alembic.
revision = '132dc68235a'
down_revision = '29c9fbe9c7f'

from alembic import op
import sqlalchemy as sa


def upgrade():
    op.drop_column('assessmentanswer', 'datastore_id')
    op.add_column('assessmentquestion',
                  sa.Column('assessor_notes', sa.Text(), nullable=True))


def downgrade():
    op.drop_column('assessmentquestion', 'assessor_notes')
    op.add_column('assessmentanswer',
                  sa.Column('datastore_id', sa.VARCHAR(length=255),
                            autoincrement=False, nullable=True))