This repository has been archived on 2020-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
quay/data/migrations/versions/3fee6f979c2a_make_auth_token_nullable.py

31 lines
841 B
Python
Raw Normal View History

"""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 ###