<filename>libweasyl/libweasyl/alembic/versions/371d1872b404_remove_optimized_image_media_selection.py
"""Remove optimized image media selection

Revision ID: 371d1872b404
Revises: <PASSWORD>
Create Date: 2021-03-07 09:41:31.364370

"""

# revision identifiers, used by Alembic.
revision = '371d1872b404'
down_revision = '3<PASSWORD>'

from alembic import op   # lgtm[py/unused-import]
import sqlalchemy as sa  # lgtm[py/unused-import]
from sqlalchemy.dialects import postgresql

def upgrade():
    op.drop_column('submission', 'image_representations')


def downgrade():
    op.add_column('submission', sa.Column('image_representations', postgresql.BYTEA(), autoincrement=False, nullable=True))

<filename>libweasyl/libweasyl/alembic/versions/371d1872b404_remove_optimized_image_media_selection.py
"""Remove optimized image media selection

Revision ID: 371d1872b404
Revises: <PASSWORD>
Create Date: 2021-03-07 09:41:31.364370

"""

# revision identifiers, used by Alembic.
revision = '371d1872b404'
down_revision = '3<PASSWORD>'

from alembic import op   # lgtm[py/unused-import]
import sqlalchemy as sa  # lgtm[py/unused-import]
from sqlalchemy.dialects import postgresql

def upgrade():
    op.drop_column('submission', 'image_representations')


def downgrade():
    op.add_column('submission', sa.Column('image_representations', postgresql.BYTEA(), autoincrement=False, nullable=True))

Remove optimized image media selection  Revision ID: 371d1872b404 Revises: <PASSWORD> Create Date: 2021-03-07 09:41:31.364370 # revision identifiers, used by Alembic. # lgtm[py/unused-import] # lgtm[py/unused-import]