35 lines
960 B
Python
35 lines
960 B
Python
"""Auto-Migration
|
|
|
|
Revision ID: e8ff60abd420
|
|
Revises: a2d7fac86703
|
|
Create Date: 2026-01-21 19:24:58.766275
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = 'e8ff60abd420'
|
|
down_revision = 'a2d7fac86703'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
with op.batch_alter_table('race_config', schema=None) as batch_op:
|
|
batch_op.add_column(sa.Column('always_change_tires', sa.Boolean(), nullable=True))
|
|
batch_op.add_column(sa.Column('min_pit_stop_sec', sa.Integer(), nullable=True))
|
|
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
with op.batch_alter_table('race_config', schema=None) as batch_op:
|
|
batch_op.drop_column('min_pit_stop_sec')
|
|
batch_op.drop_column('always_change_tires')
|
|
|
|
# ### end Alembic commands ###
|