diff --git a/migrations/versions/25092034e059_no_list_deprecation.py b/migrations/versions/25092034e059_no_list_deprecation.py new file mode 100644 index 0000000..75c4603 --- /dev/null +++ b/migrations/versions/25092034e059_no_list_deprecation.py @@ -0,0 +1,32 @@ +"""no_list_deprecation + +Revision ID: 25092034e059 +Revises: c83bdf6bf959 +Create Date: 2022-04-22 14:02:50.709644 + +""" +from alembic import op +import sqlalchemy as sa + + +# revision identifiers, used by Alembic. +revision = '25092034e059' +down_revision = 'c83bdf6bf959' +branch_labels = None +depends_on = None + + +def upgrade(): + # ### commands auto generated by Alembic - please adjust! ### + with op.batch_alter_table('mirror_list', schema=None) as batch_op: + batch_op.drop_column('deprecated') + + # ### end Alembic commands ### + + +def downgrade(): + # ### commands auto generated by Alembic - please adjust! ### + with op.batch_alter_table('mirror_list', schema=None) as batch_op: + batch_op.add_column(sa.Column('deprecated', sa.DATETIME(), nullable=True)) + + # ### end Alembic commands ###