33 lines
803 B
Python
33 lines
803 B
Python
"""Auto-detect model changes
|
|
|
|
Revision ID: fe9c4d25c5da
|
|
Revises:
|
|
Create Date: 2025-10-06 12:00:18.340503
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = 'fe9c4d25c5da'
|
|
down_revision = None
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
with op.batch_alter_table('monitor', schema=None) as batch_op:
|
|
batch_op.add_column(sa.Column('position', sa.Integer(), server_default='0', nullable=False))
|
|
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
with op.batch_alter_table('monitor', schema=None) as batch_op:
|
|
batch_op.drop_column('position')
|
|
|
|
# ### end Alembic commands ###
|