- Corrections for setting up the test environment

- Correction of some bugs discovered
This commit is contained in:
Josako
2025-05-08 14:15:06 +02:00
parent 9ea04572c8
commit 4c480c9baa
10 changed files with 125 additions and 65 deletions

View File

@@ -0,0 +1,31 @@
"""Remove relation_type from PartnerTenant
Revision ID: 9ed466e9756b
Revises: 43a9f29fb214
Create Date: 2025-05-07 14:11:25.132834
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '9ed466e9756b'
down_revision = '43a9f29fb214'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('partner_tenant', schema=None) as batch_op:
batch_op.drop_column('relationship_type')
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('partner_tenant', schema=None) as batch_op:
batch_op.add_column(sa.Column('relationship_type', sa.VARCHAR(length=20), autoincrement=False, nullable=False))
# ### end Alembic commands ###