"""make auth_token nullable

Revision ID: 3fee6f979c2a
Revises: 31288f79df53
Create Date: 2015-03-27 11:11:24.046996

"""

# revision identifiers, used by Alembic.
revision = '3fee6f979c2a'
down_revision = '31288f79df53'

from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import mysql

def upgrade(tables):
    ### commands auto generated by Alembic - please adjust! ###
    op.alter_column('repositorybuildtrigger', 'auth_token',
               existing_type=mysql.VARCHAR(length=255),
               nullable=True)
    ### end Alembic commands ###


def downgrade(tables):
    ### commands auto generated by Alembic - please adjust! ###
    op.alter_column('repositorybuildtrigger', 'auth_token',
               existing_type=mysql.VARCHAR(length=255),
               nullable=False)
    ### end Alembic commands ###
