majuna/migrations/versions/22a33ecf3474_add_provider_subgroup_to_proxy.py

32 lines
795 B
Python

"""add provider subgroup to proxy
Revision ID: 22a33ecf3474
Revises: 25092034e059
Create Date: 2022-04-25 13:33:21.231392
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '22a33ecf3474'
down_revision = '25092034e059'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('proxy', schema=None) as batch_op:
batch_op.add_column(sa.Column('psg', sa.Integer(), nullable=True))
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('proxy', schema=None) as batch_op:
batch_op.drop_column('psg')
# ### end Alembic commands ###