list: add role to s3 lists

fixes: #12
This commit is contained in:
Iain Learmonth 2022-05-11 16:12:52 +01:00
parent efb74ae413
commit 54a2c457f0
6 changed files with 62 additions and 20 deletions

View file

@ -0,0 +1,32 @@
"""add role for s3 lists
Revision ID: 7155ba7dec60
Revises: 0a0a65db7f01
Create Date: 2022-05-11 16:07:30.363508
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '7155ba7dec60'
down_revision = '0a0a65db7f01'
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.add_column(sa.Column('role', sa.String(length=255), nullable=True))
# ### 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.drop_column('role')
# ### end Alembic commands ###