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/31288f79df53_make_resource_key_nullable.py

30 lines
787 B
Python
Raw Normal View History

2015-03-23 19:40:43 +00:00
"""make resource_key nullable
Revision ID: 31288f79df53
Revises: 214350b6a8b1
Create Date: 2015-03-23 14:34:04.816295
"""
# revision identifiers, used by Alembic.
revision = '31288f79df53'
down_revision = '214350b6a8b1'
from alembic import op
import sqlalchemy as sa
def upgrade(tables):
### commands auto generated by Alembic - please adjust! ###
op.alter_column('repositorybuild', 'resource_key',
2015-10-23 20:15:09 +00:00
existing_type=sa.String(length=255),
2015-03-23 19:40:43 +00:00
nullable=True)
### end Alembic commands ###
def downgrade(tables):
### commands auto generated by Alembic - please adjust! ###
op.alter_column('repositorybuild', 'resource_key',
2015-10-23 20:15:09 +00:00
existing_type=sa.String(length=255),
2015-03-23 19:40:43 +00:00
nullable=False)
### end Alembic commands ###