33 lines
821 B
Python
33 lines
821 B
Python
"""session_photo annotations
|
|
|
|
Revision ID: d46dc696b3c3
|
|
Revises: 03057ef71b9c
|
|
Create Date: 2026-03-17 15:35:22.180323
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = 'd46dc696b3c3'
|
|
down_revision = '03057ef71b9c'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
with op.batch_alter_table('session_photos', schema=None) as batch_op:
|
|
batch_op.add_column(sa.Column('annotations', sa.JSON(), nullable=True))
|
|
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
with op.batch_alter_table('session_photos', schema=None) as batch_op:
|
|
batch_op.drop_column('annotations')
|
|
|
|
# ### end Alembic commands ###
|