- Added permissions to the partner service configuration

- Corrected a nasty bug where dynamic boolean fields were not returned correctly
This commit is contained in:
Josako
2025-04-11 21:47:41 +02:00
parent 35f0adef1b
commit 3eed546879
10 changed files with 96 additions and 25 deletions

View File

@@ -0,0 +1,31 @@
"""Add Permissions to ParterService
Revision ID: cfee2c5bcd7a
Revises: 9ac89fc67661
Create Date: 2025-04-11 07:56:56.802824
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'cfee2c5bcd7a'
down_revision = '9ac89fc67661'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('partner_service', schema=None) as batch_op:
batch_op.add_column(sa.Column('permissions', sa.JSON(), nullable=True))
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('partner_service', schema=None) as batch_op:
batch_op.drop_column('permissions')
# ### end Alembic commands ###