lists: no deprecation
This commit is contained in:
parent
2674e115f3
commit
214bacfb1f
1 changed files with 32 additions and 0 deletions
32
migrations/versions/25092034e059_no_list_deprecation.py
Normal file
32
migrations/versions/25092034e059_no_list_deprecation.py
Normal file
|
@ -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 ###
|
Loading…
Add table
Add a link
Reference in a new issue