33 lines
819 B
Python
33 lines
819 B
Python
"""session is_public
|
|
|
|
Revision ID: eb04fe02f528
|
|
Revises: 2b8adad5972b
|
|
Create Date: 2026-03-17 10:13:53.102589
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = 'eb04fe02f528'
|
|
down_revision = '2b8adad5972b'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
with op.batch_alter_table('shooting_sessions', schema=None) as batch_op:
|
|
batch_op.add_column(sa.Column('is_public', sa.Boolean(), nullable=False))
|
|
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
with op.batch_alter_table('shooting_sessions', schema=None) as batch_op:
|
|
batch_op.drop_column('is_public')
|
|
|
|
# ### end Alembic commands ###
|