Improve the demo feature of the project
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
"""add_metadata_column_to_tenants
|
||||
|
||||
Revision ID: 865dc00c1244
|
||||
Revises: 44b6798d898c
|
||||
Create Date: 2025-10-11 12:47:19.499034+02:00
|
||||
|
||||
"""
|
||||
from typing import Sequence, Union
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision: str = '865dc00c1244'
|
||||
down_revision: Union[str, None] = '44b6798d898c'
|
||||
branch_labels: Union[str, Sequence[str], None] = None
|
||||
depends_on: Union[str, Sequence[str], None] = None
|
||||
|
||||
|
||||
def upgrade() -> None:
|
||||
# Add metadata_ JSON column to tenants table
|
||||
op.add_column('tenants', sa.Column('metadata_', sa.JSON(), nullable=True))
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
# Remove metadata_ column from tenants table
|
||||
op.drop_column('tenants', 'metadata_')
|
||||
Reference in New Issue
Block a user