- correction of some bugs: - dynamic fields for adding documents / urls to dossier catalog - tabs in latest bootstrap version no longer functional - partner association of license tier not working when no partner selected - data-type dynamic field needs conversion to isoformat - Add public tables to env.py of tenant schema
36 lines
949 B
Python
36 lines
949 B
Python
"""Add SpecialistMagicLinkTenant model
|
|
|
|
Revision ID: 2b4cb553530e
|
|
Revises: 7d3c6f48735c
|
|
Create Date: 2025-06-03 20:26:36.423880
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = '2b4cb553530e'
|
|
down_revision = '7d3c6f48735c'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.create_table('specialist_magic_link_tenant',
|
|
sa.Column('magic_link_code', sa.String(length=55), nullable=False),
|
|
sa.Column('tenant_id', sa.Integer(), nullable=False),
|
|
sa.ForeignKeyConstraint(['tenant_id'], ['public.tenant.id'], ),
|
|
sa.PrimaryKeyConstraint('magic_link_code'),
|
|
schema='public'
|
|
)
|
|
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.drop_table('specialist_magic_link_tenant', schema='public')
|
|
# ### end Alembic commands ###
|