Files
raceplaner/app/migrations/versions/0489144eea7b_auto_migration.py

33 lines
775 B
Python

"""Auto-Migration
Revision ID: 0489144eea7b
Revises:
Create Date: 2026-01-21 19:09:43.187967
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '0489144eea7b'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('driver', schema=None) as batch_op:
batch_op.add_column(sa.Column('order_index', sa.Integer(), nullable=True))
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('driver', schema=None) as batch_op:
batch_op.drop_column('order_index')
# ### end Alembic commands ###