33 lines
843 B
Python
33 lines
843 B
Python
"""drop session title
|
|
|
|
Revision ID: 1bc445c89261
|
|
Revises: a403e38c1c2e
|
|
Create Date: 2026-03-17 13:32:53.010390
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = '1bc445c89261'
|
|
down_revision = 'a403e38c1c2e'
|
|
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.drop_column('title')
|
|
|
|
# ### 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.add_column(sa.Column('title', sa.VARCHAR(length=255), autoincrement=False, nullable=False))
|
|
|
|
# ### end Alembic commands ###
|