37 lines
1.0 KiB
Python
37 lines
1.0 KiB
Python
|
|
"""scope fields
|
||
|
|
|
||
|
|
Revision ID: 875675ed7b5a
|
||
|
|
Revises: eb04fe02f528
|
||
|
|
Create Date: 2026-03-17 11:17:08.772131
|
||
|
|
|
||
|
|
"""
|
||
|
|
from alembic import op
|
||
|
|
import sqlalchemy as sa
|
||
|
|
|
||
|
|
|
||
|
|
# revision identifiers, used by Alembic.
|
||
|
|
revision = '875675ed7b5a'
|
||
|
|
down_revision = 'eb04fe02f528'
|
||
|
|
branch_labels = None
|
||
|
|
depends_on = None
|
||
|
|
|
||
|
|
|
||
|
|
def upgrade():
|
||
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
||
|
|
with op.batch_alter_table('equipment_items', schema=None) as batch_op:
|
||
|
|
batch_op.add_column(sa.Column('magnification', sa.String(length=50), nullable=True))
|
||
|
|
batch_op.add_column(sa.Column('reticle', sa.String(length=10), nullable=True))
|
||
|
|
batch_op.add_column(sa.Column('unit', sa.String(length=10), nullable=True))
|
||
|
|
|
||
|
|
# ### end Alembic commands ###
|
||
|
|
|
||
|
|
|
||
|
|
def downgrade():
|
||
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
||
|
|
with op.batch_alter_table('equipment_items', schema=None) as batch_op:
|
||
|
|
batch_op.drop_column('unit')
|
||
|
|
batch_op.drop_column('reticle')
|
||
|
|
batch_op.drop_column('magnification')
|
||
|
|
|
||
|
|
# ### end Alembic commands ###
|