azure_cdn: use subgroups, attempt 1

This commit is contained in:
Iain Learmonth 2022-04-25 14:56:35 +01:00
parent b189aa8efd
commit b59d334689
3 changed files with 74 additions and 21 deletions

View file

@ -0,0 +1,32 @@
"""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 ###