Previous revision should not have the image storage col in it

This commit is contained in:
Joseph Schorr 2014-09-22 14:39:44 -04:00
parent f16878cce9
commit 1658475ac1

View file

@ -38,13 +38,11 @@ def upgrade(tables):
op.create_index('derivedimagestorage_transformation_id', 'derivedimagestorage', ['transformation_id'], unique=False)
op.drop_index('image_repository_id_docker_image_id', table_name='image')
op.create_index('image_repository_id_docker_image_id', 'image', ['repository_id', 'docker_image_id'], unique=True)
op.add_column(u'imagestorage', sa.Column('uncompressed_size', sa.BigInteger(), nullable=True))
### end Alembic commands ###
def downgrade(tables):
### commands auto generated by Alembic - please adjust! ###
op.drop_column(u'imagestorage', 'uncompressed_size')
op.drop_index('image_repository_id_docker_image_id', table_name='image')
op.create_index('image_repository_id_docker_image_id', 'image', ['repository_id', 'docker_image_id'], unique=False)
op.drop_index('derivedimagestorage_transformation_id', table_name='derivedimagestorage')