Previous revision should not have the image storage col in it
This commit is contained in:
parent
f16878cce9
commit
1658475ac1
1 changed files with 0 additions and 2 deletions
|
@ -38,13 +38,11 @@ def upgrade(tables):
|
||||||
op.create_index('derivedimagestorage_transformation_id', 'derivedimagestorage', ['transformation_id'], unique=False)
|
op.create_index('derivedimagestorage_transformation_id', 'derivedimagestorage', ['transformation_id'], unique=False)
|
||||||
op.drop_index('image_repository_id_docker_image_id', table_name='image')
|
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.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 ###
|
### end Alembic commands ###
|
||||||
|
|
||||||
|
|
||||||
def downgrade(tables):
|
def downgrade(tables):
|
||||||
### commands auto generated by Alembic - please adjust! ###
|
### 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.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.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')
|
op.drop_index('derivedimagestorage_transformation_id', table_name='derivedimagestorage')
|
||||||
|
|
Reference in a new issue