From d292a34343193c40ed564a1d2fd92e085a16936f Mon Sep 17 00:00:00 2001 From: Jake Moshenko Date: Fri, 6 Nov 2015 16:49:16 -0500 Subject: [PATCH] Drop the v1 checksum column from imagestorage --- ...82e_drop_v1_checksums_from_imagestorage.py | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 data/migrations/versions/b0e4a7dd82e_drop_v1_checksums_from_imagestorage.py diff --git a/data/migrations/versions/b0e4a7dd82e_drop_v1_checksums_from_imagestorage.py b/data/migrations/versions/b0e4a7dd82e_drop_v1_checksums_from_imagestorage.py new file mode 100644 index 000000000..0f830bcdb --- /dev/null +++ b/data/migrations/versions/b0e4a7dd82e_drop_v1_checksums_from_imagestorage.py @@ -0,0 +1,25 @@ +"""Drop v1 checksums from imagestorage + +Revision ID: b0e4a7dd82e +Revises: 22af01f81722 +Create Date: 2015-11-06 16:45:31.517503 + +""" + +# revision identifiers, used by Alembic. +revision = 'b0e4a7dd82e' +down_revision = '22af01f81722' + +from alembic import op +import sqlalchemy as sa + +def upgrade(tables): + ### commands auto generated by Alembic - please adjust! ### + op.drop_column('imagestorage', 'checksum') + ### end Alembic commands ### + + +def downgrade(tables): + ### commands auto generated by Alembic - please adjust! ### + op.add_column('imagestorage', sa.Column('checksum', sa.String(length=255), nullable=True)) + ### end Alembic commands ###